zoukankan      html  css  js  c++  java
  • PLSQL Developer向Oracle导入sql文件

    1.打开PLSQL Developer,弹出登录窗口,用户名和密码以及Database为安装Oracle时设置的,默认Usernamesys, 默认DatabaseORCLConnect as选择SYSDBA

    2.登陆成功后,选择左上方的New——>SQL Window

     

    3.先创建一个临时的表空间,假设名为test_temp,代码如下:

     

    Create temporary tablespace test_temp
    Tempfile ‘E:\tablespace\test_test.dbf’
    Size 100M
    Autoextend on
    Next 100M maxsize 200M
    Extent management local;
    

     

    然后将这些代码全部选中,点击左上的齿轮按钮以执行。

    4.再创建一个正式的表空间,假设名为test_data,代码如下:

     

    Create tablespace test_data
    logging
    datafile ‘E:\tablespace\test_data.dbf’
    Size 100M
    Autoextend on
    Next 100M maxsize 200M
    Extent management local;
    

     

    然后将这些代码全部选中,点击左上的齿轮按钮以执行。

    5.新建能操作test表空间的用户,假设用户名为crytoll,密码为superoracle,代码如下:

     

    Create user crytoll identified superoracle
    Default tablespace test_data
    Temporary tablespace test_temp;
    

     

    然后将这些代码全部选中,点击左上的齿轮按钮以执行。

    6.向crytoll赋予连接数据库等权限,代码如下:

     

    Grant 
    Connect,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 table
    To crytoll;
    

     

    然后将这些代码全部选中,点击左上的齿轮按钮以执行。

    7. 点击左上方的钥匙按钮,以crytoll的身份登录。

    8.点击File——>open——>SQL Script,将已有的sql文件导入,会以代码的形式显示在SQL窗口中,全部选中,点击左上的齿轮按钮以执行。

     

     

     

     

  • 相关阅读:
    TCP/IP协议学习-1.概述
    Gitlab与Sonarqube整合-代码提交自动检测
    Kubernetes-4.Pods
    Kubernetes-3.安装
    Kubernetes-2.组件
    Kubernetes-1.概述
    第200题 数列极限积分
    English
    亮总语录
    RadioButton Control
  • 原文地址:https://www.cnblogs.com/cysolo/p/3035450.html
Copyright © 2011-2022 走看看