`

有关表空间、导入导出数据库

 
阅读更多

select * from budget_salaryiidef t where t.itemtype=1;
select * from budget_salaryiidef t where t.bdgyear=2012 and t.itemtype=1;

update budget_salaryiidef bs set bs.ordernum=(
       select rn from (select itemid,rownum rn from budget_salaryiidef where itemtype=1 and bdgyear=2012 order by ordernum) t
       where bs.itemid=t.itemid)
 where itemtype=1 and bdgyear=2012;


imp userid=gzsp2/1@pjpt file=D:\gzbsdb(标准db20120925).dmp fromUser=gzsp2 touser=gzsp21 grants=n destroy=y
exp userid=gzbs2/gzbs2@172.17.103.250/or10 file=D:\gzbsdb(标准db20120918).dmp owner=gzbs2 grants=n

exp userid=faspft/1@172.17.103.134/orcl file=D:\faspft20131204.dmp owner=faspft grants=n FULL=Y
exp userid=ftyth/1@172.17.103.134/orcl file=D:\ftyth20131204.dmp owner=ftyth grants=n FULL=Y
exp userid=bmyserror/1@172.17.103.15/orcl file=D:\bmys(db20130809).dmp owner=bmyserror grants=n
172.17.103.15/orcl  账号:bmyserror  密码:1


imp userid=bmystest/1@172.17.103.230/orcl file=D:\bmys(db20130809)1.dmp full = y

imp userid=faspft/1@orcl file=D:\faspft20131204.dmp fromUser=faspft grants=n destroy=y
imp userid=ftyth/1@orcl file=D:\ftyth20131204.dmp fromUser=ftyth  grants=n destroy=y

exp userid=ft1/1@172.17.103.132/orcl file=D:\20150421.dmp owner=ftyth grants=n

imp userid=ft1/1@172.17.103.230/orcl file=D:\数据库\ftyth-2014-08-25-PM\dbback\db\ftyth-2014-08-25-PM.dmp grants=n FULL=Y

imp userid=ftythnew/1@172.17.103.230/orcl file=D:\数据库\ftyth-2014-08-25-PM\dbback\db\ftyth-2014-08-25-PM.dmp grants=n FULL=Y


----------------------
create tablespace LTLOBDATA01
datafile 'D:\oracle\product\10.2.0\oradata\orcl\LTLOBDATA01' size 1024m
autoextend on next 50m maxsize unlimited;

create tablespace LTSYSDATA01
datafile 'D:\oracle\product\10.2.0\oradata\orcl\LTSYSDATA01' size 2028m
autoextend on next 50m maxsize unlimited;

create tablespace LTSYSDATA02
datafile 'D:\oracle\product\10.2.0\oradata\orcl\LTSYSDATA02' size 200m
autoextend on next 50m maxsize unlimited;

 

--授权表空间
 alter user ftythnew default tablespace ftyth;
 grant unlimited tablespace to ftythnew;

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics