PLSQL Developer imports SQL files to Oracle

Source: Internet
Author: User

PLSQL Developer imports an SQL file to Oracle. open PLSQL Developer. The logon window is displayed. The Username, password, and Database are set when Oracle is installed. The default Username is sys, the default Database is ORCL, And the Connect as option is SYSDBA. 2. after successful login, select New --> SQL Window 3 in the upper-left corner. first, Create a temporary tablespace named test_temp. The Code is as follows: Create temporary tablespace test_tempTempfile 'e: \ tablespace \ test_test.dbf 'size 100 MAutoextend onNext 100 M maxsize 200 Mexico tent management local; select all the code and click the gear button on the top left to execute the code. 4. create another formal tablespace, assuming the name is test_data. The Code is as follows: Create tablespace test_dataloggingdatafile 'e: \ tablespace \ test_data.dbf' Size 100 MAutoextend onNext 100 M maxsize 200 MExtent management local; select all the code and click the gear button on the top left to execute the code. 5. create a user who can operate the test tablespace. Assume that the user name is crytoll and the password is superoracle. The Code is as follows: Create user crytoll identified superoracleDefault tablespace test_dataTemporary tablespace test_temp; then select all the code, click the gear button on the top left to execute the task. 6. grant the database connection permission to crytoll. The Code is as follows: GrantConnect, resource, create session, create any table, create any view, alter any table, drop any table, Drop any view, select any table, insert any table, update any table, delete any tableTo crytoll; then select all the code and click the gear button on the top left to execute the code. 7. Click the key button in the upper-left corner to Log On As crytoll. 8. click File --> open --> SQL Script to import the existing SQL File. It is displayed as code in the SQL window. Select all the files and click the gear button on the top left to execute the SQL Script.

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.