Vežba CRVENO i CRNO -- Tablespace transport iz baze 9i u bazu 10g Transport Tablespace 9.2_To_10.2 |
SOURCE 9i crvena |
DESTINATION 10g crna |
SQL> select * from V$version; BANNER ---------------------------------------------------------------- Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production PL/SQL Release 9.2.0.1.0 - Production CORE 9.2.0.1.0 Production TNS for 32-bit Windows: Version 9.2.0.1.0 - Production NLSRTL Version 9.2.0.1.0 - Production |
SQL> select * from V$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production |
create user user_ts1 identified by user_ts1
default tablespace users
temporary tablespace temp; User created. SQL> grant connect,resource to user_ts1; connect user_ts1/user_ts1 create table table1(col1 varchar2(1)); insert into table1 values ('s'); insert into table1 values ('y'); commit; connect sys/**** column file_name format a59 C:\ORACLE\ORADATA\FILEN\SYSTEM01.DBF SYSTEM ALTER TABLESPACE TS1 READ ONLY; Tablespace altered. SQL> exit set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 exp "'/ as sysdba'" file=export_ts1.dmp
log=export_ts1.log transport_tablespace=y tablespaces=TS1 |
SQL> create user user_ts2 identified by user_ts2 default tablespace
users temporary tablespace temp2; User created. SQL> grant connect,resource to user_ts2; proveriti da li su dostupni export_ts1.dmp i datoteka TS1.ORA SQL>exit set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 D:\oracle\product\10.2.0\oradata\orcl>imp "'/ as sysdba'"
file=D:\oracle\product\10.2.0\oradata\orcl\export_export_ts1.d SQL> column file_name format a59 SQL> connect user_ts2/user_ts2 |