You are on page 1of 13

Ci t Oracle 10g XE v SQL Developer

Ci t Oracle 10g XE v SQL Developer

Mc Lc
Ci t Oracle 10g XE v SQL Developer......................................................................................1 Phn I: Ci t Oracle 10g XE.............................................................................................................2 I/ Chun b:....................................................................................................................................2 II/ Ci t v cu hnh:...................................................................................................................2 1/Ci t:....................................................................................................................................2 2/ Cu Hnh:...............................................................................................................................3 Phn II: Ci t SQL-DEVELOPER.................................................................................................8 I/ Chun b:....................................................................................................................................8 Ci t Oracle 10g XE v SQL Developer......................................................................................1 II/Ci t v cu hnh:..................................................................................................................11 1/Ci t:..................................................................................................................................11 2/Cu hnh:...............................................................................................................................11

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Phn I: Ci t Oracle 10g XE


I/ Chun b:
u tin bn phi c 1 ti khon http://www.oracle.com (phn ny cc bn t res yen-thao khng hng dn). Vo link sau ti oracle 10g xe http://www.oracle.com/technetwork/database/expressedition/downloads/102xelinsoft-102048.html

Hnh 1: Download Oracle 10g XE.

II/ Ci t v cu hnh:
1/Ci t:
Sau khi ti xong nhp i vo file deb va ti ci t:

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Hnh 2: Ci t oracle 10g XE(do yen-thao ci t ri nn Reinstall Package nu bn cha ci t th Install Package bn nhp vo ci t).

2/ Cu Hnh:
Sau th ci t xong th bn bm t hp phm Ctrl+Alt+T( vo terminal). Sau khi vo terminal bn nh vo dng lnh sau: sudo /etc/init.d/oracle-xe configure V y l phn cu hnh: Oracle Database 10g Express Edition Configuration ------------------------------------------------This will configure on-boot properties of Oracle Database 10g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press to accept the defaults. Ctrl-C will abort. Specify the HTTP port that will be used for Oracle Application Express [8080]: [Enter key] Specify a port that will be used for the database listener [1521]:[Enter key] Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer


different passwords for each database account. This can be done after initial configuration:secret Confirm the password:secret Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y Starting Oracle Net Listener...Done Configuring Database...Done Starting Oracle Database 10g Express Edition Instance...Done Installation Completed Successfully. To access the Database Home Page go to "http://127.0.0.1:8080/apex" Hon thnh phn ci t oracle 10g xe trn ubuntu. Bn vo a ch

http://127.0.0.1:8080/apex vi ti user l SYSTEM Pass l secret(c th i mt khu khc ty thch).

Hnh 3: Database home page.

Lc ny oracle s to ra mt user mang tn l Oracle. Lc ny bn phi cho user bn ang s dng nm trong nhm dba( c th start oracle nu khng th ch c user Oracle mi c quyn thi) cc bn lm cc bc nh sau: yen-thao Email:bachhoathanhnu@gmail.com 4

Ci t Oracle 10g XE v SQL Developer

Hnh 4: Vo System->Administration->User and Groups.

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Hinh 5: User Settings.

Hnh 6: Group settings.

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Hnh 7: Sau khi chn user ca bn vo nhm dba th bn nhp OK hon thnh.

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Phn II: Ci t SQL-DEVELOPER


I/ Chun b:
Bn vo link sau down SQL development v nh: http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html.

Hnh 8: Download SQL-DEVELOPER.

Ci t Java: i vi bn Ubuntu 10.04< th vo terminal g lnh sau: sudo apt-get update sudo apt-get install sun-java6-jdk i vi bn >Ubuntu 10.04(10.10 c 1 s thay i nh bn t tm hiu nha):

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer Vo terminal g: sudo gedit /etc/apt/sources.list Thm vo sources.list dng sau: deb http://archive.canonical.com/ lucid partner Hoc bn c th thao tc trn giao din nh sau:

Hnh 9: System->Administation->Software Sources(Sau nhp password vo).

Hnh 10: Nhp chn http://archive.canonical.com/ubuntu lucid partner sau nhp Close.

yen-thao Email:bachhoathanhnu@gmail.com

Ci t Oracle 10g XE v SQL Developer

Hnh 11: C 1 bn thng bo hin ln bn tip tc chn Close kt thc phn chun b ci java.

Sau bn chy lnh sau ci java:

sudo apt-get update sudo apt-get install sun-java6-jdk Dng alien i file RPM thnh file deb nu cha ci t alien th dng lnh: sudo apt-get install alien Sau cd n th mc cha file sql-developer v d c lu desktop dng cu lnh sau: cd ~/Desktop sudo alien <tn file RPM(nh l c .rpm)> V d: Tn file sql developer my yen-thao l: sqldeveloper-1.5.4.59.40-1.noarch.rpm cd ~/Desktop sudo alien sqldeveloper-1.5.4.59.40-1.noarch.rpm N s thng bo nh th ny bn ng c vi tt nghen tht ra l n ang chuyn t rpm sang deb bn i 1 cht l n xong ^^. sudo alien sqldeveloper-1.5.4.59.40-1.noarch.rpm error: incorrect format: unknown tag Warning: Skipping conversion of scripts in package sqldeveloper: postinst Warning: Use the --scripts parameter to include the scripts. Khi to xong n xut ra dng lnh: yen-thao Email:bachhoathanhnu@gmail.com 10

Ci t Oracle 10g XE v SQL Developer sqldeveloper_1.5.4.59.40-2_all.deb generated Lc ny th nhp vo m ci thi^^.

II/Ci t v cu hnh:
1/Ci t:
By gi bn ch cn nhp i vo file deb ca sql-developer v ci t tng t nh ci t Oracle 10g XE.

2/Cu hnh:
Sau khi ci t xong. Bn vo nautilus bm CTRL+L sau g vo: /usr/lib/jvm

Hnh 12: Th mc /usr/lib/jvm (nh ch th mc ch con chut).

Enter xong bn xem th mc java-6-sun.. c ui l g my yen-thao n nh th ny ^^ java-6-sun-1.6.0.22(Nn nh mi thi im mi khc nn bn phi lm vic ny trc ri mi lm vic tip theo.) Tip theo vo terminal g lnh: sudo gedit /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf V thm vo dng: SetJavaHome /usr/lib/jvm/java-6-sun-1.6.0.22 vo trong file sqldeverloper.conf sau save li. yen-thao Email:bachhoathanhnu@gmail.com 11

Ci t Oracle 10g XE v SQL Developer V cui cng th vo sqldeveloper bng cch vo terminal g vo: sqldeveloper Hoc bn c th lm theo cc bc sau y to mt icon mn hnh lm vic desktop tin hn. Ra ngoi Desktop nhp phi chn Create Launcher ri nhp thng tin vo ging nh hnh:

Hnh 13: Create Laucher.

Nhp vo OK. Mi ln mun vo SQL-DEVELOPER ch cn nhp i vo icon, Th l bn y cng c hc cc mn lin quan n c s d liu ri nh^^.

Hnh 14: SQL-DEVELOPER.

yen-thao Email:bachhoathanhnu@gmail.com

12

Ci t Oracle 10g XE v SQL Developer

Add-info: Writer: OpenOffice 3.2. OS: Ubuntu 10.04 LTS - the Lucid Lynx. 16/1/2011 14:20. Ti liu ny bn c th s dng, sao chp, phn phi li v sa li ni dung ca ti liu ny vi iu kin l bn phi cng nhn tc gi ca ti liu gc l yen-thao(bachhoathanhnu@gmail.com). CC LI T CHI (DISCLAIMER) Chng ti tht s c gng bo m chnh xc cao ca cc thng tin c cung cp trong quyn sch ny. Tuy nhin chng ti khng th no bo m mt chnh xc tuyt i 100%. V vy, tc gi gc khng th no chi trch nhim nu nh ti liu ny cha mt s sai lm ngoi mun v nhng hu qu m chng c th gy ra. Chng ti c th cp n mt s phn mm v phn cng trong ti liu ny l nhng phn mm v phn cng c tn thng mi c ng k v c bn quyn. Nu ng nh th, chng ti khng c nh i li nhng tn . THIS DOCUMENTATION IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

yen-thao Email:bachhoathanhnu@gmail.com

13