81 p0 S 0:01 -bash 26675 ? S 0:02 ora_pmon_ORCL 26677 ? S 0:20 (oracle) 26679 ? S 0:30 ora_lgwr_ORCL 26681 ? S 0:04 (oracle) 26683 ? S 0:02 (oracle) 26685 ? S 0:01 ora_reco_ORCL 26997 1 S 0:00 -bash 27030 1 S 0:02 ./svrmgrl 27031 ? S 0:00 oracleORCL (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) |
[oracle@pokemon u01]$ sqlplus SQL*Plus: Release 8.0.5.0.0 - Production on Thu Jul 27 15:49:47 2000 (c) Copyright 1998 Oracle Corporation. All rights reserved. Enter user-name: scott Enter password: Connected to: Oracle8 Release 8.0.5.0.0 - Production PL/SQL Release 8.0.5.0.0 - Production 次は、リスナ−を動かしてみましょう。lsnrctl LSNRCTL for Linux: Version 8.0.5.0.0 - Production on 13-AUG-00 09:55:23 (c) Copyright 1997 Oracle Corporation. All rights reserved. Welcome to LSNRCTL, type "help" for information. |
Starting /home/u01/app/oracle/product/8.0.5/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 8.0.5.0.0 - Production System parameter file is /home/u01/app/oracle/product/8.0.5/network/admin/listener.ora Log messages written to /home/u01/app/oracle/product/8.0.5/network/log/listener.log Listening on: (ADDRESS=(PROTOCOL=ipc)(DEV=6)(KEY=ora8)) Listening on: (ADDRESS=(PROTOCOL=ipc)(DEV=10)(KEY=PNPKEY)) Listening on: (ADDRESS=(PROTOCOL=tcp)(DEV=11)(HOST=172.21.xx.xx)(PORT=1521)) Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ora8)) STATUS of the LISTENER ------------------------ Listener Parameter File /home/u01/app/oracle/product/8.0.5/network/admin/listener.ora |
SVRMGR> connect internal Connected. SVRMGR> shutdown Database closed. Database dismounted. ORACLE instance shut down |
pass = tiger id = scott sql = select * from emp sid = test port = xxxx hadr = localhost
EMPNO | ENAME | JOB | MGR | HIREDATE | SAL | COMM | DEPTNO |
7369 | SMITH | CLERK | 7902 | 2080-12-17 00:00:00.0 | 800 | null | 20 |
7499 | ALLEN | SALESMAN | 7698 | 2081-02-20 00:00:00.0 | 1600 | 300 | 30 |
7521 | WARD | SALESMAN | 7698 | 2081-02-22 00:00:00.0 | 1250 | 500 | 30 |
7566 | JONES | MANAGER | 7839 | 2081-04-02 00:00:00.0 | 2975 | null | 20 |
7654 | MARTIN | SALESMAN | 7698 | 2081-09-28 00:00:00.0 | 1250 | 1400 | 30 |
7698 | BLAKE | MANAGER | 7839 | 2081-05-01 00:00:00.0 | 2850 | null | 30 |
7782 | CLARK | MANAGER | 7839 | 2081-06-09 00:00:00.0 | 2450 | null | 10 |
7788 | SCOTT | ANALYST | 7566 | 2082-12-09 00:00:00.0 | 3000 | null | 20 |
7839 | KING | PRESIDENT | null | 2081-11-17 00:00:00.0 | 5000 | null | 10 |
7844 | TURNER | SALESMAN | 7698 | 2081-09-08 00:00:00.0 | 1500 | 0 | 30 |
7876 | ADAMS | CLERK | 7788 | 2083-01-12 00:00:00.0 | 1100 | null | 20 |
7900 | JAMES | CLERK | 7698 | 2081-12-03 00:00:00.0 | 950 | null | 30 |
7902 | FORD | ANALYST | 7566 | 2081-12-03 00:00:00.0 | 3000 | null | 20 |
7934 | MILLER | CLERK | 7782 | 2082-01-23 00:00:00.0 | 1300 | null | 10 |