ORACLE 刪除某個USER的所有TABLE

ORACLE 刪除某個USER的所有TABLE

1. select 'Drop table '||table_name||';',owner from all_tables where owner='你的USER ID';
2.將組好的SCRIPT 貼到文字檔
3. 開COMMAND WINDOWS 一次執行下去
4.這樣就可以重新IMPORT DMP檔了喔
 

ORA-00911: invalid character

在plsql可正常運行,但C# i程序中就報錯
 
ORA-00911:        invalid character
Cause:        Special characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not enclosed in double quotation marks ("), this message will be issued. One exception to this rule is for database names; in this case, double quotes are stripped out and ignored.
Action:        Remove the invalid character from the statement or enclose the object name in double quotation marks.
 
原來只是將組成的SQL語法裡的;分號拿掉,就可以正常運行了~~ ^__^。

 

無法載入組件 C:\oracle\ora92\bin\OCI.dll

今天測試AP測不通
試了以下方法才解決
方法一:重新設定環境變數
 若裝了兩個ORACEL CLIENT 會有兩個路徑的問題
     PATH 裡面設定 C:\oracle\ora92\bin
方法二: 重裝ORALCE CLIENT

方法二: 重裝ORALCE CLIENT
Oracle 移除方法:
* 注意事項:不論是安裝或移除,版本越舊的要先安裝與移除。
移除:
1、 Stop Service :Oracle所有服務都要停掉
2、 Installer:先解D2k再解9i(p.s 可做可不做)
3、 刪機碼:在執行視窗內下指令”regedit”
hkey_class_root底下 oracle、ora、orcl (檔名內有這些名稱的都要刪)
hkey_current_user 底下 Software、oracle 全刪
hkey_local_machine 底下
system  controlset01 \Service
       contorlset02
     currentcontrolset  (所有oraccle srevice全刪除)
(一定要做!)
4、 program_file …oracle內 :目錄全刪 (若無法刪除,請重新開機後再刪)
5、 將所有oracle目錄刪除(包括6i、9i的)
6、 刪除有關oracle的”捷徑”
7、 刪除有關oracle的path
8、 重新開機
方法三 重新設定權限
處理方法
1.使用具有Administrator權限帳戶登入作業系統。
2.開啟檔案總管,並找到您的Oracle程式目錄 (例如: C:\Oracle\Ora92)。
3.請在您的[群組或使用者名稱]中找到Authenticated Users(如果沒有必須自行加入)。
4.請在Authenticated Users的權限中,把[讀取和執行]項目[取消打勾],並按下套用。
5.接著請重新[讀取和執行]項目[重新打勾],並按下套用。
6.請選擇右下方的[進階],視窗開啟後請確認Authenticated Users權限有套用到資料夾、子資料夾及檔案。
7.按下確定離開即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值