创建数据库
用管理员模式打开命令行输入
dbca -J-Doracle.assistants.dbca.validate.ConfigurationParams=false
创建用户
连接Oracle
sqlplus / as sysdba
创建表空间
create tablespace ideal1 datafile 'F:\2024\APP\ADMINISTRATOR\ORADATA\AB\ideal1.DBF'
size 2000M autoextend on next 200M maxsize unlimited
extent management local autoallocate segment space management auto;
创建用户(密码含有特殊字符时用双引号)
create user ideal1 identified by ******** default tablespace ideal1;
赋权
grant dba to ideal1;
导出
window环境 密码包含特殊字符时,用"““密码””"
expdp 用户/密码@sid schemas=ideal1 directory=DATA_PUMP_DIR dumpfile=ideal.dmp logfile=ideal1.log
导入
window环境 密码包含特殊字符时,用"““密码””"
impdp 用户/密码@sid schemas=ideal1 directory=DATA_PUMP_DIR dumpfile=ideal.dmp REMAP_SCHEMA=ideal1:ideal TABLE_EXISTS_ACTION=replace