Differences between revisions 5 and 13 (spanning 8 versions)
Revision 5 as of 2007-02-06 08:37:36
Size: 5468
Editor: 219
Comment:
Revision 13 as of 2007-11-09 10:08:48
Size: 2496
Editor: 203
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * [http://www.oracleclub.com/profile/OracleFirst.jsp 오라클공부를 처음 시작하시는 분들께...]
Line 6: Line 7:
[Python] interface
 * DCOracle2 : http://www.zope.org/Members/matt/dco2
 * cx_oracle : http://www.computronix.com/utilities.shtml
Line 10: Line 8:
[Python]으로 연동하여 쓸 경우, [cx_Oracle] 사용.

== 특징 ==
 1. WikiPedia:Tablespace

== 원격 접속방법 ==
참고 : [http://www.iplus.co.kr/community/blog.asp?seq=118123433158522&code=101012 Oracle 접속문제]
 1. Oracle client 프로그램을 설치한다.
 1. $ORACLE_HOME/network/admin 디렉토리에 tnsnames.ora 파일을 생성한다.

tnsnames.ora 예제
{{{
SidExample =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ipaddress )(PORT = 1521))
    (CONNECT_DATA =
      (SID = SidExample)
    )
  )
}}}

== 사용 팁 ==
사용자생성
{{{
SQL>CONN SYSTEM/MANAGER -- DBA Role이 있는 유저로 접속합니다.
SQL>CREATE USER yong IDENTIFIED BY 1111; -- USER를 다시 생성합니다.
 사용자가 생성되었습니다.
SQL>GRANT CREATE USER, ALTER USER, DROP USER TO yong WITH ADMIN OPTION; -- 권한부여
SQL>GRANT SELECT, INSERT ON some_object TO yong WITH GRANT OPTION; -- 객체(테이블,뷰,시퀀스,프로시저)에 권한부여
}}}

자주쓰이는 쿼리문
{{{
SQL>select table_name from user_tables; # 유저가 소유한 모든 테이블 보기
}}}

Oracle 시작과 종료
{{{
# su - oracle
$ export ORACLE_SID=ORANLRI
$ sqlplus "/as sysdba"
> startup
> exit
}}}

----
Line 28: Line 72:
> update sys.props$ set value$='UTF-8' where name='NLS_CHARACTERSET'; > update sys.props$ set value$='UTF-8' where name='NLS_CHARACTERSET'; 
Line 39: Line 83:
 [http://homepage.mac.com/absurd2/68.html webcam teenagers] | [http://homepage.mac.com/shy3/30.html webcam girl nude] | [http://homepage.mac.com/gongs1/31.html old faithful webcam] | [http://homepage.mac.com/subcranial/82.html teenage webcams] | [http://homepage.mac.com/corsica4/7.html webcam strip tease] | [http://homepage.mac.com/petrarchan/71.html stripping on webcam] | [http://homepage.mac.com/leitmotif1/35.html webcam links] | [http://homepage.mac.com/gruffer1/56.html live free webcam] | [http://homepage.mac.com/dybbuks/94.html sexy webcams] | [http://homepage.mac.com/woads/72.html teens webcam] | [http://homepage.mac.com/calibre2/40.html cam crush webcams] | [http://homepage.mac.com/dogtired1/53.html webcam private] | [http://homepage.mac.com/squarish/60.html webcam dancing] | [http://homepage.mac.com/squarish/14.html male webcams] | [http://homepage.mac.com/petrarchan/38.html webcam chicks] | [http://homepage.mac.com/squarish/42.html free webcam viewing] | [http://homepage.mac.com/petrarchan/21.html online webcam chat] | [http://homepage.mac.com/knob10/24.html wife with webcam] | [http://homepage.mac.com/entrenches/38.html video webcam] | [http://homepage.mac.com/bowlfuls/1.html my private webcam] | [http://homepage.mac.com/annealed/76.html alaska webcams] | [http://homepage.mac.com/gongs1/45.html webcam sex videos] | [http://homepage.mac.com/knob10/25.html wildlife live webcam] | [http://homepage.mac.com/petrarchan/72.html movies webcam swinger] | [http://homepage.mac.com/knob10/23.html streaming live webcam] | [http://homepage.mac.com/petrarchan/76.html bed webcam] | [http://homepage.mac.com/gongs1/95.html webcam flashers] | [http://homepage.mac.com/squarish/73.html old faithful webcam] | [http://homepage.mac.com/subcranial/72.html free webcam teen] | [http://homepage.mac.com/pericles4/60.html webcam fantasies] | [http://homepage.mac.com/bowlfuls/51.html webcam couples] | [http://homepage.mac.com/absurd2/44.html free adult webcam] | [http://homepage.mac.com/absurd2/79.html live webcams] | [http://homepage.mac.com/corsica4/25.html hot webcam strip] | [http://homepage.mac.com/entrenches/8.html girl webcam pics] | [http://homepage.mac.com/shy3/83.html webcam chicks] | [http://homepage.mac.com/bowlfuls/47.html webcam sexy] | [http://homepage.mac.com/entrenches/25.html webcams teen girls] | [http://homepage.mac.com/subcranial/30.html webcam free chat] | [http://homepage.mac.com/shy3/20.html personal webcams] | [http://homepage.mac.com/fagoting/75.html sexy webcams] | [http://homepage.mac.com/knob10/64.html cam crush webcams] | [http://homepage.mac.com/squarish/85.html webcam private] | [http://homepage.mac.com/bowlfuls/71.html webcam females] | [http://homepage.mac.com/dogtired1/86.html boy webcam] | [http://homepage.mac.com/allegation/54.html webcam girl strip] | [http://homepage.mac.com/petrarchan/51.html webcam dancing] | [http://homepage.mac.com/squarish/62.html free webcam hosting] | [http://homepage.mac.com/dogtired1/15.html unmonitored webcams] | [http://homepage.mac.com/gongs1/4.html free webcam chats] | [http://homepage.mac.com/leitmotif1/39.html college webcam] | [http://homepage.mac.com/absurd2/10.html free webcams] | [http://homepage.mac.com/absurd2/60.html free girls webcams] | [http://homepage.mac.com/entrenches/21.html shower webcam] | [http://homepage.mac.com/knob10/47.html free view webcams] | [http://homepage.mac.com/squarish/13.html webcam old faithful] | [http://homepage.mac.com/dybbuks/45.html homemade webcam video] | [http://homepage.mac.com/knob10/11.html amateur webcam] | [http://homepage.mac.com/knob10/6.html webcam orgasm] | [http://homepage.mac.com/gongs1/47.html hot teen webcam] | [http://homepage.mac.com/squarish/60.html webcam chat room] | [http://homepage.mac.com/subcranial/42.html webcam girl video] | [http://homepage.mac.com/annealed/30.html live webcam strip] | [http://homepage.mac.com/woads/86.html free naked webcams] | [http://homepage.mac.com/subcranial/6.html nude webcam chat] | [http://homepage.mac.com/squarish/56.html adult webcam sites] | [http://homepage.mac.com/fagoting/66.html webcam flash tits] | [http://homepage.mac.com/fagoting/93.html webcam reviews] | [http://homepage.mac.com/shy3/11.html manitoba webcam pictures]

가장 널리 알려진 상업용 RelationalDatabase Management System

관련정보

[Python]으로 연동하여 쓸 경우, [cx_Oracle] 사용.

특징

  1. Tablespace

원격 접속방법

참고 : [http://www.iplus.co.kr/community/blog.asp?seq=118123433158522&code=101012 Oracle 접속문제]

  1. Oracle client 프로그램을 설치한다.
  2. $ORACLE_HOME/network/admin 디렉토리에 tnsnames.ora 파일을 생성한다.

tnsnames.ora 예제

SidExample =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ipaddress )(PORT = 1521))
    (CONNECT_DATA =
      (SID = SidExample)
    )
  )

사용 팁

사용자생성

SQL>CONN SYSTEM/MANAGER       -- DBA Role이 있는 유저로 접속합니다.
SQL>CREATE USER yong IDENTIFIED BY 1111;    -- USER를 다시 생성합니다.
 사용자가 생성되었습니다.
SQL>GRANT CREATE USER, ALTER USER, DROP USER TO yong WITH  ADMIN  OPTION;  -- 권한부여
SQL>GRANT SELECT, INSERT ON some_object TO yong WITH  GRANT  OPTION;  -- 객체(테이블,뷰,시퀀스,프로시저)에 권한부여

자주쓰이는 쿼리문

SQL>select table_name from user_tables;  # 유저가 소유한 모든 테이블 보기

Oracle 시작과 종료

# su - oracle
$ export ORACLE_SID=ORANLRI
$ sqlplus "/as sysdba"
> startup
> exit


CharacterSet변경문제, 혹은 [http://database.sarang.net/?inc=read&aid=18388&criteria=oracle&subcrit=&id=&limit=20&keyword=character&page=3 관련질답]

# su - oracle
$ export ORACLE_SID=sid
$ echo $ORACLE_SID
sid
$ sqlplus /nolog
> connect / as sysdba
> shutdown
> startup mount exclusive
> alter database enable restricted session;
> alter database set job_queue_processes = 0;
> alter database open;
> alter database character set internal_use utf8;
> alter database national character set internal_use utf8;
> select * from nls_database_parameters where parameter like '%CHARACTERSET%';

> update sys.props$ set value$='UTF-8' where name='NLS_CHARACTERSET'; 
> update sys.props$ set value$='UTF-8' where name='NLS_NCHAR_CHARACTERSET';
> update sys.props$ set value$='UTF-8' where name='NLS_LANGUAGE';

> commit;
> shutdown immediate
> startup
> exit


CategoryProgram

Oracle (last edited 2012-12-03 16:09:15 by 182)

web biohackers.net