oracle create tablespace
2014-01-02 11:10
489 查看
create tablespace ZGECM logging datafile 'G:\oracle\product\10.2.0\ZGECM.DBF' size 500M autoextend on next 10M maxsize 500M extent management local create user sms2 identified by sms2 default tablespace ECM2 temporary tablespace temp profile default; --6 授权给新建用户 grant connect,resource to sms2; grant dba to sms2; exp xuner_ecm/xuner_ecm@192.168.1.139/SMS FILE=E:/xunerecm0910_server.DMP OWNeR=xuner_ecm imp scjt/scjt@SMS fromuser=ecm touser=sms2 file='G:\sms.dmp' imp SMS/SMS@LOCAL_SMS fromuser=SMS touser=SMS file='G:\sms.dmp' select userenv('language') from dual; //查询oracle服务器端的字符 select nls_charset_name(to_number('0354','0354')) from dual; CREATE DATABASE LINK sms CONNECT TO sms IDENTIFIED BY sms USING 'SMS'; insert into XSJBXXB select * from sms.xsjbxxb@zhang2 insert into XSJBXXB select * from sms.xsjbxxb@to_test --创建dblink create database link to_test connect to sms identified by sms using 'ZHANG'; '(DESCRIPTION =( ADDRESS_LIST =( ADDRESS =( PROTOCOL = TCP)( HOST = 192.168.0.100)(PORT = 1521))) (CONNECT_DATA =(SERVICE_NAME = AAA)))' --查询约束 select owner,constraint_name,table_name from user_constraints where constraint_name='SYS_C00119759' ----------------------------------------------------- /*分为四步 */ /*第1步:创建临时表空间 */ create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; /*第2步:创建数据表空间 */ create tablespace user_data logging datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; /*第3步:创建用户并指定表空间 */ create user username identified by password default tablespace user_data temporary tablespace user_temp; /*第4步:给用户授予权限 */ grant connect,resource,dba to username; --Error dropping MEM_GENINF: --ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源 --Record is locked by another user --1.查看锁 select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid ; --2、Kill alter system kill session 'sid,serial#'; alter system kill session '151,14678';
相关文章推荐
- Oracle create tablespace 、create user and so on
- Oracle create tablespace 创建表空间语法详解
- Oracle create tablespace 创建表空间语法详解
- Create / Alter Oracle TableSpace / Temporary TableSpace, User...
- oracle raw device create tablespace
- oracle create tablespace
- Oracle create tablespace 创建表空间语法详解
- Create / Alter Oracle TableSpace / Temporary TableSpace, User...
- oracle create tablespace、user and grant
- oracle create user and create tablespace
- Oracle学习笔记--CREATE TABLESPACE
- Oracle?create?tablespace语法详解
- Oracle -- Create Tablespace
- oracle create user &tablespace & imp
- oracle create tablespace语法详解
- Oracle之create tablespace、user
- Oracle:Create tablespace and move table to another tablespace
- Create tablespace in Oracle
- Oracle create tablespace 创建表空间语法详解
- Oracle create tablespace语法详解