Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

問題

> library(RODBC)

> ch <-odbcConnect("jcgi")

不能輸出結果
> sqlQuery (ch,[從雙重上選取 [sysdate])
發生錯誤。呼叫屬性 (通道,"handle_ptr")、 最大值 (C_RODBCFetchRows,
buffsize:
不允許負值的長度向量

使用 32 位元的 oracle 文件庫

> library(RODBC)
> ch <-odbcConnect("jcgi")
警告訊息︰
1︰ 在 odbcDriverConnect("DSN=jcgi") 中︰
[RODBC]錯誤︰ 狀態 01000,程式碼 0,訊息 [unixODBC] [驅動程式
管理員] 無法開啟 lib
'/usr/lib/oracle/11.2/client/lib/libsqora.so.11.1' : 
/usr/lib/oracle/11.2/client/lib/libsqora.so.11.1︰ 錯誤的小精靈類別︰
ELFCLASS32 
2︰ 在 odbcDriverConnect("DSN=jcgi"): ODBC 連線失敗

方案

新增選項 ' believeNRows =' odbcConnect() 呼叫中。

此選項,就必須從 Oracle 資料庫中匯入資料時設定。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×