Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle创建表空间及用户 #54

Open
toplhy opened this issue Jul 1, 2024 · 0 comments
Open

Oracle创建表空间及用户 #54

toplhy opened this issue Jul 1, 2024 · 0 comments

Comments

@toplhy
Copy link
Owner

toplhy commented Jul 1, 2024

记录Oracle创建表空间及用户

导入数据

1. 创建表空间

CREATE TABLESPACE gaoxiao DATAFILE '/opt/develop/oracle/oradata/gaoixao.ora' SIZE 500m;

2. 创建用户

CREATE USER gaoxiao IDENTIFIED BY gaoxiao123456 DEFAULT TABLESPACE gaoxiao QUOTA 500m ON USERS;

3. 用户授权

GRANT CONNECT,dba,RESOURCE TO gaoxiao; 4.导入dmp文件 imp gaoxiao/gaoxiao123456 full=y file=/home/oracle/gaoxiao.dmp ignore=y

导出指定用户的表到dmp文件

exp gaoxiao\_new/gaoxiao123456@dbsrv2 file=/home/oracle/gaoxiao\_new.dmp OWNER=gaoxiao\_new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant