oracle常用命令
select * from v$version
创建表空间
create tablespace TESTDATA
datafile 'C:\dev\oracle12c\oradata\orcl\test.dbf' size 128m autoextend on next 100m;
-- Create the user
create user C##TEST
identified by C##TEST
default tablespace TESTDATA
temporary tablespace TEMP;
-- Grant/Revoke role privileges
grant connect to C##TEST;
grant dba to C##TEST;
GRANT SELECT ANY TABLE TO C##LITUIXIU WITH ADMIN OPTION;
命令行的导入与导出
通过plsql导入失败,也没有报错。。。太难了
试试命令吧!
exp xue/123456@localhost:1521/orcl file=G:\Oracle\backups_20180718.dmp owner=xue
格式:exp 用户名/密码@IP地址:端口号/数据库实例名 file=dmp文件导出时的保存路径即文件名 owner=要导出表的所属用户
imp xue/123456@localhost:1521/orcl file=G:\Oracle\backups_20180718.dmp full=y ignore=y
格式:imp 用户名/密码@IP地址:端口号/数据库实例名 file=要导入的dmp文件的保存路径及其文件 full=y ignore=y
注意:*执行导入导出的命令是在 cmd命令行 下,而不是通过 sqlplus* 进入的 sql命令行 下
乱码问题
select userenv('language') from dual;
修改编码
https://www.cnblogs.com/siyunianhua/p/4004327.html