accessing oracle data through sas

accessing oracle data through sas

ID:24725046

大小:382.50 KB

页数:22页

时间:2018-11-14

accessing oracle data through sas_第1页
accessing oracle data through sas_第2页
accessing oracle data through sas_第3页
accessing oracle data through sas_第4页
accessing oracle data through sas_第5页
资源描述:

《accessing oracle data through sas》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、AccessingORACLEdatathroughSASSusanneYoungBankOneOverviewYouneedtouseSAStoaccessdatastoredinOracletablesorviewsOptionsLIBNAMEstatementpass-thruSQLqueryLIBNAMEstatementLIBNAMEMYORALIBORACLEUSER=MYUIDPW=MYPASSWORDPATH='@OraInfo'SCHEMA=MYSCHEMA;LIBNAMEstatement14LIBNAMEMYORALIBORA

2、CLEUSER=MYUIDPW=XXXXXXXPATH='@OraInfo'SCHEMA=MYUIDNOTE:LibrefMYORALIBwassuccessfullyassignedasfollows:Engine:ORACLEPhysicalName:@OraInfoLIBNAMEstatementLIBNAMEstatementPROCPRINTDATA=MYORALIB.NBR_DAYS_TO_DATE_LKUP;RUN;LIBNAMEstatementHelpfulInfoAutomaticmacrovariables&sysdbmsgd

3、isplaystheDBMSerrormessages58%put&sysdbmsg;ORACLE:ORA-01017:invalidusername/password;logondenied&sysdbrcdisplaystheDBMSerrorcodes59%put&sysdbrc;-1017SqlpassthruqueryPROCSQL;CONNECTTOORACLE(USER=MYUIDORAPW=MYPASSWORDPATH='@OraInfo');SELECT*FROMCONNECTIONTOORACLE(SELECT*FROMMYSC

4、HEMA.NBR_DAYS_TO_DATE_LKUP);DISCONNECTFROMORACLE;QUIT;SqlpassthruquerySqlpassthruqueryExecutestatementexecute(grantselectonMYSCHEMA.MY_TABLEtoOTHERUID)byoracle;execute(executecredit(234,5000))byoracle;execute(createuniqueindexmy_pkonMYUID.MY_TABLE(MYFIELD))byoracle;Execute(dro

5、ptableMYUID.MY_TABLE)byoracle;SqlpassthruqueryAutomaticmacrovariables&sqlxmsgdisplaystheDBMSerrormessages64%put&SQLXMSG;ORA-12560:TNS:protocoladaptererror&sqlxrcdisplaystheDBMSerrorcodes65%put&SQLXRC;-12560WhatyouneedtoknowPath=optionWhatyouneedtoknowWhatyouneedtoknowSchema=op

6、tionInMicrosoftAccess,whenconnectingtoOracletables,theSchemanameisidentifiedasthetexttotheleftoftheperiod.Thebestwaytofindoutistogotothesource,yourOracleDBAErrorMessagesTheserviceyou’rereferencingisnotconfiguredinyoursqlnet.orafile.ERROR:ORACLEconnectionerror:ORA-12154:TNS:cou

7、ldnotresolveservicename.ERROR:ErrorintheLIBNAMEstatement.YoudonothaveSAS/AccessforORACLEorit’snotconfiguredproperlyERROR:TheSAS/ACCESSInterfacetoORACLEcannotbeloaded.TheSASORAcodeappendagecouldnotbeloaded.ERROR:ErrorintheLIBNAMEstatement.ErrorMessagesYou’veenteredyourUserIDorp

8、asswordincorrectlyorit’sexpired.ERROR:ORACLEconnectionerror:O

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。