sqlplus hr/Oracle123@127.0.0.1:1521/booboopdb1
先查看监听,找到service [oracle@oracle01 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 12-OCT-2019 19:21:57
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ol7-122.localdomain)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production Start Date 12-OCT-2019 19:02:32 Uptime 0 days 0 hr. 19 min. 59 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/oracle01/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle01)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=oracle01)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/booboo/xdb_wallet))(Presentation=HTTP)(Session=RAW)) Services Summary... Service "93227d66515623b9e0553ce49b3eaf97" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "932283ef357f23fbe0553ce49b3eaf97" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "9322894c27292419e0553ce49b3eaf97" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "93228eb75d13244ce0553ce49b3eaf97" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "booboo" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "boobooXDB" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "booboopdb1" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "booboopdb2" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "booboopdb3" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... Service "booboopdb4" has 1 instance(s). Instance "booboo", status READY, has 1 handler(s) for this service... The command completed successfully
[oracle@oracle01 human_resources]$ sqlplus hr/Oracle123@127.0.0.1:1521/booboopdb1
SQL*Plus: Release 12.2.0.1.0 Production on Sun Sep 22 04:57:12 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Sun Sep 22 2019 04:23:41 -07:00
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> select * from jobs;
JOB_ID JOB_TITLE MIN_SALARY MAX_SALARY ---------- ----------------------------------- ---------- ---------- AD_PRES President 20080 40000 AD_VP Administration Vice President 15000 30000 AD_ASST Administration Assistant 3000 6000 FI_MGR Finance Manager 8200 16000 FI_ACCOUNT Accountant 4200 9000 AC_MGR Accounting Manager 8200 16000 AC_ACCOUNT Public Accountant 4200 9000 SA_MAN Sales Manager 10000 20080 SA_REP Sales Representative 6000 12008 PU_MAN Purchasing Manager 8000 15000 PU_CLERK Purchasing Clerk 2500 5500
JOB_ID JOB_TITLE MIN_SALARY MAX_SALARY ---------- ----------------------------------- ---------- ---------- ST_MAN Stock Manager 5500 8500 ST_CLERK Stock Clerk 2008 5000 SH_CLERK Shipping Clerk 2500 5500 IT_PROG Programmer 4000 10000 MK_MAN Marketing Manager 9000 15000 MK_REP Marketing Representative 4000 9000 HR_REP Human Resources Representative 4000 9000 PR_REP Public Relations Representative 4500 10500
19 rows selected.
SQL> select * from jobs;
JOB_ID JOB_TITLE MIN_SALARY MAX_SALARY ---------- ----------------------------------- ---------- ---------- AD_PRES President 20080 40000 AD_VP Administration Vice President 15000 30000 AD_ASST Administration Assistant 3000 6000 FI_MGR Finance Manager 8200 16000 FI_ACCOUNT Accountant 4200 9000 AC_MGR Accounting Manager 8200 16000 AC_ACCOUNT Public Accountant 4200 9000 SA_MAN Sales Manager 10000 20080 SA_REP Sales Representative 6000 12008 PU_MAN Purchasing Manager 8000 15000 PU_CLERK Purchasing Clerk 2500 5500
JOB_ID JOB_TITLE MIN_SALARY MAX_SALARY ---------- ----------------------------------- ---------- ---------- ST_MAN Stock Manager 5500 8500 ST_CLERK Stock Clerk 2008 5000 SH_CLERK Shipping Clerk 2500 5500 IT_PROG Programmer 4000 10000 MK_MAN Marketing Manager 9000 15000 MK_REP Marketing Representative 4000 9000 HR_REP Human Resources Representative 4000 9000 PR_REP Public Relations Representative 4500 10500
19 rows selected.
|