oracle表空間創(chuàng)建步驟 oracle怎樣創(chuàng)建表空間和用戶?
oracle怎樣創(chuàng)建表空間和用戶?打開Oracle服務(wù),打開PLSQL工具,使用管理員帳戶登錄。2. 單擊左上角的newsql窗口。3. 創(chuàng)建表空間。在SQL窗口中輸入“create tablespa
oracle怎樣創(chuàng)建表空間和用戶?
打開Oracle服務(wù),打開PLSQL工具,使用管理員帳戶登錄。
2. 單擊左上角的newsql窗口。
3. 創(chuàng)建表空間。在SQL窗口中輸入“create tablespace test datafile”測試.ora“這里的大小為1000m,test是表空間的名稱,路徑是自己命名的。然后單擊“執(zhí)行”按鈕。
4. 執(zhí)行成功后,繼續(xù)創(chuàng)建用戶。輸入create user test identified by test default table space test quota 500m on users,其中第一個(gè)測試是用戶名,第二個(gè)測試是密碼,第三個(gè)測試是表空間名稱。然后執(zhí)行。
5. 成功創(chuàng)建用戶后,授權(quán)。輸入grant all privileges以測試并執(zhí)行語句以授權(quán)測試用戶。此時(shí),測試用戶可以登錄。
6. 接下來,使用測試用戶登錄并創(chuàng)建表。
如何用LINUX用命令創(chuàng)建ORACLE數(shù)據(jù)庫表空間和用戶?
1. 使用超級用戶登錄sqlplus。
2. 創(chuàng)建表空間:SQL>創(chuàng)建表空間測試2datafile“D:”O(jiān)racleoradatatest 測試.dbf3. 創(chuàng)建用戶和密碼:SQL>創(chuàng)建由passworddefault table2users臨時(shí)表spacetemp
4標(biāo)識的用戶名。用戶權(quán)限:SQL> grant connect,resource,dbato User name
5。提交:SQL>commit