Oracle - How to generate script from sql developer

后端 未结 10 529
臣服心动
臣服心动 2020-12-07 20:13

How to take script for schema of the tables, stored procedures of Oracle through SQL Developer tool (SQLPLUS command line interface)?

10条回答
  •  抹茶落季
    2020-12-07 21:17

    Oracle SQL Developer > View > DBA > Select your connection > Expand > Security > Users > Right click your user > Create like > Fill in fields > Copy SQL script > Close

    If your user has object privileges, do this also

    Oracle SQL Developer > View > DBA > Select your connection > Expand > Security > Users > Double click your user > Object Privs > Select all data > Right click > Export > Export as text file

    Edit that text file to grant object privileges to your user.

提交回复
热议问题