Enable Arrow key scritp in sqlplus(oracle)

* Download : click here..!


* Usage (by root)

wget http://finfra.com/_file/rlwrap.sh
chmod +x rlwrap.sh
./rlwrap.sh
sqlplus / as sysdba
select;


*  source

# version: 0.1.2

# description: using the arrow key in oracle sqlplus

# made by nowage@gmail.com

# os : rhel4

# shell : bash

# usage :

#       $ su -

#       Password:****

#       # chmod +x rlwrap.sh

#       # rlwrap.sh

#       $ sqlpus / as sysdba

#       SQL> select;

#       SQL> {arrow up......^^/ }

# history :

#       version 0.1.2 : add alias for rman,asmcmd

#                       modify Usage.

#                       remove some bug.

#--------------------------------


wget ftp://194.199.20.114/linux/EPEL/4WS/i386/rlwrap-0.30-1.el4.i386.rpm

rpm -Uvh rlwrap-0.30-1.el4.i386.rpm

su - oracle -c "/bin/cat>>/home/oracle/.bash_profile<<EOF

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

alias asmcmd='rlwrap asmcmd'

EOF

exit"

su - oracle





Posted by 나현재

2009/11/05 12:28 2009/11/05 12:28
, , ,
Response
0 Trackbacks , 4 Comments
RSS :
http://j.finfra.com/tt/rss/response/437

Windows7 patch Oracle10g r2 for vista x64

Just testing..

 

  1. Unzip.

     

  2. Copy patch. (by using THIS
     attached file)

     

  3. Execute batch file.

     

  4. Install.

     

     

  5. Select custom install option

     

     

     

     

  • Some Problem : The toad and odbc is not working.

    $ORACLE_HOME\BIN\oci.dll is not working.

    ( win32 dll problem..TT )



    attached File :


Posted by 나현재

2009/10/30 10:09 2009/10/30 10:09
, , , ,
Response
0 Trackbacks , 1 Comments
RSS :
http://j.finfra.com/tt/rss/response/436

hr export file example

..

Posted by 나현재

2008/07/25 13:05 2008/07/25 13:05
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/428

vmware_ip setting 절차(처음 시작시)

사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지

사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지

Posted by 나현재

2008/06/22 19:07 2008/06/22 19:07
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/427

spfile example

^^

Posted by 나현재

2008/03/08 16:00 2008/03/08 16:00
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/425

spfile sample(+ASM)

.

Posted by 나현재

2008/02/14 09:50 2008/02/14 09:50
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/424

oracle10g autoStart(Linux)

File Location
1. service File
/etc/rc.d/init.d/oracle

2. other File
/u01/app/oracle/script/


Posted by 나현재

2007/12/19 20:56 2007/12/19 20:56
Response
0 Trackbacks , 1 Comments
RSS :
http://j.finfra.com/tt/rss/response/422

웹호스팅서버에서 파일 백업하기.

* 개요 : 웹 호스팅 서버에 업로드한 파일을 일괄 백업하는 일은 만만치 않은 일이다.(ftp로 백업을 받는 것은 불안한 일이다.) 뿐만아니라 데어터 배이스도 백업 받아야 한다. 아주 귀찮은 일이다. 그래서 어느정도 편하게 호스팅서버의 파일을 백업 받는 방법을 소개 하고자 한다.
예는 저렴한 cafe24.com를 예로 들었으며 첨부된 스크립트는 직접만들어 봤다.

* 절차
1. telnet을 통해 아래와 같이 접속한다.
사용자 삽입 이미지

2. vi 에디터를 통해 파일을 만들어 준다. (마우스 오른쪽 버튼을 통해 붙여넣기를 해도 무방, 파일을 업로드 해도 무방하나 인코딩 방식에 주의 해야 한다.)
사용자 삽입 이미지

3. ":wq"를 눌러 저장하고 나온다.
사용자 삽입 이미지

4. 실행가능하게 파일의 속성을 변경한다.
사용자 삽입 이미지

5. _backup 폴더를 만들어 준다.
사용자 삽입 이미지

6, 스크립트를 실행한다.
사용자 삽입 이미지
7. ftp프로그램을 통해 백업된 두개의 파일을 다운 받는다.
사용자 삽입 이미지


---------------------------------스크립트 파일--------------------------------------
 # usage : > sh _backupAll.sh 050909 all
#
case $2 in
        all) tar -cf ./_backup/www$1.tar www
        ;;
esac
mysqldump -p finfra1 > ./_backup/mysqlDump$1.sql
ls -als ./_backup/*$1*
echo "Backup is Completed...!!"


Posted by 나현재

2007/11/30 15:09 2007/11/30 15:09
, , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/421

textCube에서 Contents width 바꾸기.

스킨 파일 아래 부분을 수정한다.

  (기본 스킨 coolant에 해당함.)

  • index.xml ( 부분)

<contentWidth>800</contentWidth>


  • style.css ( 부분) - contentColumn이 커지는 만큼 container의 값도 키워준다.

#container

{

width: 1121px;

margin: 0 auto;

}


#contentColumn

{

float: left;

width: 810px;

overflow: hidden;

}


  • 아래와 같이 800px width값을 가지는 이미지도 외곡없이 볼 수 있다.

사용자 삽입 이미지

Posted by 나현재

2007/11/19 18:41 2007/11/19 18:41
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/420

rman 을 통한 타임머신 복구.
  <rman incomplete recovery time base>


1. 복구 시간에 대한 환경변수를 결정한다.(윈도우에서는 레지스터리나 환경변수)
  #nls_date_format = YYYY-MM-DD:HH24:MI:SS


2. rman 백업을 한다. (Full)


3. (문제 발생 : 테이블 하나를 삭제해 본다.)


4. 아래와 같은 스크립트를 실행시킨다.( 복구 시간은 rman 전체 백업 이후 이고, 문제 발생 시점 이전이어야 함.)
  run { 
  shutdown immediate;
  startup mount;
  allocate channel Channel1 type disk format 'C:\ORACLE\ORADATA\JN\b_%u_%p_%c';
  set until time '2007-00-00:00:00:00';
  restore database;
  recover database;
  }



5. 사용자 정의 불완전 복구를 시행한다.(아카이브파일과 리두로그파일을 삭제 후)
  cmd>sqlplus "/as sysdba"
  Sql>recover database until cancel;
  cnacel
  Sql>alter database open resetlogs;
 
사용자 삽입 이미지




6. (확인) 3번 과정에서 삭제한 테이블이 있는지 확인해 본다.





      
Written by NaHyunJae(http://j.finfra.com)
Copyright Finfra(http://finfra.com) All Rights Reserved

Posted by 나현재

2007/10/17 20:36 2007/10/17 20:36
,
Response
0 Trackbacks , 0 Comments
RSS :
http://j.finfra.com/tt/rss/response/416


블로그 이미지

Insufficient memory! So,Blog is my 2nd Brain!

- 나현재

Notices

Archives

Authors

  1. 나현재

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Site Stats

Total hits:
202429
Today:
0
Yesterday:
18