home *** CD-ROM | disk | FTP | other *** search
-
-
- #Verifying ORACLE RDBMS ...
-
-
- #########################################
-
- #Check the banners:
-
- exp 6.0.27.9.2 - Production
- imp 6.0.27.9.2 - Production
- sqldba 6.0.27.9.2 - Production
-
-
-
- ########################################
-
- #Invoking ptt
-
- SQLDBA> connect system/manager@P:
- Connected.
- SQLDBA> create table temp (col1 number, col2 char(5));
- Statement processed.
- SQLDBA> insert into temp values (1,'A');
- 1 row processed.
- SQLDBA> insert into temp values (2,'B');
- 1 row processed.
- SQLDBA> insert into temp values (3,'C');
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 B
- 3 C
- 3 rows selected.
- SQLDBA> update temp set col2 = 'BB' where col1 = 2;
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 BB
- 3 C
- 3 rows selected.
- SQLDBA> drop table temp;
- Statement processed.
- SQLDBA> disconnect;
- Disconnected.
- SQLDBA>
-
- SQL*DBA complete.
-
-
-
- ########################################
-
- #Invoking ftt
-
- SQLDBA> connect system/manager@F:
- Connected.
- SQLDBA> create table temp (col1 number, col2 char(5));
- Statement processed.
- SQLDBA> insert into temp values (1,'A');
- 1 row processed.
- SQLDBA> insert into temp values (2,'B');
- 1 row processed.
- SQLDBA> insert into temp values (3,'C');
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 B
- 3 C
- 3 rows selected.
- SQLDBA> update temp set col2 = 'BB' where col1 = 2;
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 BB
- 3 C
- 3 rows selected.
- SQLDBA> drop table temp;
- Statement processed.
- SQLDBA> disconnect;
- Disconnected.
- SQLDBA>
-
- SQL*DBA complete.
-
-
- ########################################
-
- #Test sga relocation
- # i) find a suitable value for NEW_SGABEG
- # ii) define sgabeg in ksms.s to be the one found in i)
- # iii) remake oracle using oracle.mk
- # iv) invoke the new oracle
-
-
- ls -l /usr/user1/bin/oracle
- -rwx------ 1 user1 dba 2022439 Dec 15 05:23 /usr/user1/bin/oracle
-
- `ksms.s' is up to date.
- # i)
-
- OLD SGABEG : .set sgabeg,0X90400000
- NEW SGABEG : 0x80400000
-
-
- # ii) grep NEW_SGABEG ksms.s
-
- .set sgabeg,0x80400000
-
- #iii) make -f oracle.mk oracle
-
- as -o ksms.o ksms.s
- chmod 644 libknl.a
- ar r libknl.a ksms.o
- cc -o oracle opimai.o osntab.o libsqlnet.a config.o libora.a libknl.a libora.a libpls.a libora.a libknl.a libora.a libpls.a -lld
-
- # iv) invoke new oracle
- ls -l /usr/user1/bin/oracle
- -rwx------ 1 user1 dba 2022439 Dec 15 06:15 /usr/user1/bin/oracle
- SQLDBA>
- SQLDBA> startup
- ORACLE instance started.
- Database mounted.
- Database opened.
- Total System Global Area 773524 bytes
- Fixed Size 24452 bytes
- Variable Size 306704 bytes
- Database Buffers 409600 bytes
- Redo Buffers 32768 bytes
- SQLDBA> connect internal
- Connected.
- SQLDBA> create table temp (col1 number, col2 char(5));
- Statement processed.
- SQLDBA> insert into temp values (1,'A');
- 1 row processed.
- SQLDBA> insert into temp values (2,'B');
- 1 row processed.
- SQLDBA> insert into temp values (3,'C');
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 B
- 3 C
- 3 rows selected.
- SQLDBA> update temp set col2 = 'BB' where col1 = 2;
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 BB
- 3 C
- 3 rows selected.
- SQLDBA> drop table temp;
- Statement processed.
- SQLDBA> disconnect;
- Disconnected.
- SQLDBA> shutdown
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQLDBA> exit
- SQL*DBA complete.
-
- #sga relocation test done.
- #SGABEG has been restored to .set sgabeg,0X90400000
-
-
-
- ########################################
-
- #export and import scott/tiger tables
-
- # i) Build the scott/tiger demo tables
-
- SQLDBA>
- SQLDBA> startup
- ORACLE instance started.
- Database mounted.
- Database opened.
- Total System Global Area 773524 bytes
- Fixed Size 24452 bytes
- Variable Size 306704 bytes
- Database Buffers 409600 bytes
- Redo Buffers 32768 bytes
- SQLDBA> connect internal
- Connected.
- SQLDBA> create table temp (col1 number, col2 char(5));
- Statement processed.
- SQLDBA> insert into temp values (1,'A');
- 1 row processed.
- SQLDBA> insert into temp values (2,'B');
- 1 row processed.
- SQLDBA> insert into temp values (3,'C');
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 B
- 3 C
- 3 rows selected.
- SQLDBA> update temp set col2 = 'BB' where col1 = 2;
- 1 row processed.
- SQLDBA> select * from temp;
- COL1 COL2
- ---------- -----
- 1 A
- 2 BB
- 3 C
- 3 rows selected.
- SQLDBA> drop table temp;
- Statement processed.
- SQLDBA> disconnect;
- Disconnected.
- SQLDBA> shutdown
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQLDBA> exit
- SQL*DBA complete.
-
- # ii) export the data
- # exp scott/tiger file=verify.dmp grants=y rows=y compress=n indexes=y
- # constraints=y
-
-
- Connected to: ORACLE RDBMS V6.0.27.9.2, transaction processing option - Production
- PL/SQL V1.0.30.0.1 - Production
-
-
- About to export SCOTT's objects ...
- . exporting database links
- . exporting cluster definitions
- . exporting sequence numbers
- . about to export SCOTT's tables ...
- . exporting table BONUS 0 rows exported
- . exporting table DEPT 4 rows exported
- . exporting table DUMMY 1 rows exported
- . exporting table EMP 14 rows exported
- . exporting table SALGRADE 5 rows exported
- . exporting referential integrity contraints
- . exporting synonyms and views
- Export terminated successfully.
-
-
-
- Export: Version 6.0.27.9.2 - Production on Sat Dec 15 06:17:34 1990
-
- Copyright (c) Oracle Corporation 1979, 1989. All rights reserved.
-
-
-
-
- #iii) delete the existing data in the database ( to make sure that
- # import works )
-
- SQLDBA> connect scott/tiger
- Connected.
- SQLDBA> select * from emp;
- EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTN
- ---------- ---------- --------- ---------- --------- ---------- ---------- -----
- O
- -----
- 0 rows selected.
- SQLDBA>
-
- SQL*DBA complete.
-
- # iv) import back the data
- # imp scott/tiger file=verify.dmp ignore=y grants=y rows=y fromuser=scott
-
-
-
- Connected to: ORACLE RDBMS V6.0.27.9.2, transaction processing option - Production
- PL/SQL V1.0.30.0.1 - Production
-
- Export file created by EXPORT:V06.00.27
- . importing SCOTT's objects into SCOTT
- . . importing table "BONUS" 0 rows imported
- . . importing table "DEPT" 4 rows imported
- . . importing table "DUMMY" 1 rows imported
- . . importing table "EMP" 14 rows imported
- . . importing table "SALGRADE" 5 rows imported
- Import terminated successfully.
-
- Import: Version 6.0.27.9.2 - Production on Sat Dec 15 06:18:03 1990
-
- Copyright (c) Oracle Corporation 1979, 1989. All rights reserved.
-
-
-
- # v) verify that import works
-
- SQLDBA> connect scott/tiger
- Connected.
- SQLDBA> select * from emp;
- EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTN
- ---------- ---------- --------- ---------- --------- ---------- ---------- -----
- O
- -----
- 7369 SMITH CLERK 7902 17-DEC-80 800
- 20
- 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300
- 30
- 7521 WARD SALESMAN 7698 22-FEB-81 1250 500
- 30
- 7566 JONES MANAGER 7839 02-APR-81 2975
- 20
- 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400
- 30
- 7698 BLAKE MANAGER 7839 01-MAY-81 2850
- 30
- 7782 CLARK MANAGER 7839 09-JUN-81 2450
- 10
- 7788 SCOTT ANALYST 7566 09-DEC-82 3000
- 20
- 7839 KING PRESIDENT 17-NOV-81 5000
- 10
- 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
- 30
- 7876 ADAMS CLERK 7788 12-JAN-83 1100
- 20
- 7900 JAMES CLERK 7698 03-DEC-81 950
- 30
- 7902 FORD ANALYST 7566 03-DEC-81 3000
- 20
- 7934 MILLER CLERK 7782 23-JAN-82 1300
- 10
- 14 rows selected.
- SQLDBA>
-
- SQL*DBA complete.
-
-
-
- ####### Rdbms.Verify Done #######
-
-