新聞中心
plsqldeveloper怎樣創(chuàng)建數(shù)據(jù)庫?
樓主只要新建一個表空間,并把它分配給一個用戶就可以了。確定樓主是以管理員身份登錄的:1.首先,創(chuàng)建(新)用戶: create user username identified by password; username:新用戶名的用戶名 password: 新用戶的密碼也可以不創(chuàng)建新用戶,而仍然用以前的用戶,如:繼續(xù)利用scott用戶2.創(chuàng)建表空間: create tablespace tablespacename datafile 'd:\data.dbf' size xxxm; tablespacename:表空間的名字 d:\data.dbf':表空間的存儲位置 xxx表空間的大小,m單位為兆(M)3.將空間分配給用戶: alert user username default tablespace tablespacename; 將名字為tablespacename的表空間分配給username 4.給用戶授權(quán): grant create session,create table,unlimited tablespace to username;5.然后再以樓主自己創(chuàng)建的用戶登錄,登錄之后創(chuàng)建表即可。conn username/password;

plsql運行sql步驟?
plsql執(zhí)行.sql文件步驟如下:一、PL/SQL登錄到數(shù)據(jù)庫,使用tools工具進行導入,使用plsql登錄到需要導入數(shù)據(jù)的數(shù)據(jù)庫,點擊工具欄上【tools】--【Import tables】。
二、點擊工具【SQL Inserts】、(第二個選項),點擊選擇需要導入的數(shù)據(jù)庫腳本。
三、選擇sql腳本的,點擊打開,即可打開數(shù)據(jù)庫腳本文件,數(shù)據(jù)庫腳本就可以預加載到plsq工具中。
四、開始導入數(shù)據(jù)庫數(shù)據(jù)。選擇完sql腳本之后,點擊【Import】按鈕開始將腳本中的數(shù)據(jù)導入到數(shù)據(jù)庫中。
五、執(zhí)行完之后,沒有任何報錯說明插入成功。
plsql工具oracle怎樣創(chuàng)建表空間和用戶?
--創(chuàng)建表空間: create tablespace 表空間名 datafile 'D:\oradata\orcl\表空間名.dbf' size 100m --表空間大小 autoextend on next 10M maxsize 1024M; --自動增長 --創(chuàng)建用戶: create user 用戶名 identified by 密碼 default tablespace 默認表空間; --授權(quán): grant connect,resource,dba to 用戶名
plsql怎么執(zhí)行創(chuàng)建函數(shù)腳本?
要執(zhí)行PL/SQL創(chuàng)建函數(shù)腳本,可以使用Oracle SQL Developer或者其他的數(shù)據(jù)庫管理工具。
首先,打開SQL Developer并連接到目標數(shù)據(jù)庫。
然后,打開一個新的SQL窗口,將函數(shù)腳本粘貼到該窗口中。
接下來,點擊運行按鈕或者按下快捷鍵Ctrl+Enter來執(zhí)行腳本。如果腳本中沒有語法錯誤,函數(shù)將被成功創(chuàng)建。您可以通過查詢數(shù)據(jù)庫中的函數(shù)列表來驗證函數(shù)是否已成功創(chuàng)建。
到此,以上就是小編對于plsql如何創(chuàng)建自己的數(shù)據(jù)庫的問題就介紹到這了,希望這4點解答對大家有用。
分享標題:plsqldeveloper怎樣創(chuàng)建數(shù)據(jù)庫?(plsql怎么創(chuàng)建自己的數(shù)據(jù)庫)
URL網(wǎng)址:http://www.dlmjj.cn/article/ccsiggh.html


咨詢
建站咨詢
