Oracle Plsql Code backwards

Source: Internet
Author: User
Tags dba

Log in to Plsql with the DBA user and Execute

The first step is to create a table space

CREATE Smallfile
Tablespace "ASSETS"
LOGGING
DataFile
' E:\ORACLE\PRODUCT\10.2.0\ORADATA\SDZC0216\ASSETS1.ora ' SIZE
500M Autoextend
On NEXT 10M MAXSIZE UNLIMITED,
' E:\ORACLE\PRODUCT\10.2.0\ORADATA\SDZC0216\ASSETS2.ora ' SIZE
500M Autoextend
On NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;

Where assets is the table space name, ' E:\ORACLE\PRODUCT\10.2.0\ORADATA\SDZC0216\ASSETS1.ora ' for the path, if you want to build multiple tablespace files, remember the back order +1

Assets1.ora Assets2.ora Assets3.ora .......

The second step is to create a user

Create User Username
Default tablespace Table Space name
identified by user password;

Step three, assign permissions
Grant DBA to User name;
Grant Select any table to user name;
Grant execute any procedure to user name;
Grant CREATE table to user name;

Fourth step, import the Library

Login Plsql with new user (knock on Blackboard, focus), select tool-Import Table

PS: If there is an error (such as a lack of table space, etc.), want to re-get, execute the bottom statement

Drop user username cascade; (dba user login execution)

Oracle Plsql Code backwards

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.