- -- Create temporary tablespace
- Create temporary tablespace yhtemp
- Tempfile 'd: \ oracle \ oradata \ Oracle10g \ yhtemp. dbf'
- Size 50 m
- Autoextend on
- Next 50 m maxsize 20480 m
- Extent management local;
- -- Create a data table space
- Create tablespace YH
- Logging
- Datafile 'd: \ oracle \ oradata \ Oracle10g \ YH. dbf'
- Size 50 m
- Autoextend on
- Next 50 m maxsize 20480 m
- Extent management local;
- -- Create a user and specify a tablespace
- Create user YH identified by password
- Default tablespace YH
- Temporary tablespace yhtemp;
- -- Grant permissions to users
- Grant connect, resource, DBA to YH;
- -- Revoke this permission
- Revoke unlimited tablespace from YH
- -- Set the table space quota of the user in YSS and test1 to 0.
- Alter user YH quota 0 on YSS
- Alter user YH quota 0 on test1
- -- The user's quota in the YH tablespace is not limited.
- Alter user YH quota unlimited on YH
Reposted to another blog. I imported the data in this step successfully.
Note that you should not use the sysdba permission when logging on to the system using your username and password. Otherwise, the system will import the data to the Sys user,
After the import is successful, when you want to view the table, do not use sysdba to log on with your own user name and password. Otherwise, you cannot see the imported table.