'Close the database
Sub closeDatabase ()
Oradatabase. close
'Set oradatabase = nothing
Orasession. close
Set orasession = nothing
End sub
Function displayerror ()
If err. number <> 0 then
Response. Write "<br> <p align = center fontsize = 20> database connection failed. Contact the system administrator! </P>"
Response. End
End if
End function
%>
Solution:
1. When IIS accesses the ORACLE database, it assigns a permission (oracle bug) to OLEDB)
Add/edit the "Authenticated Users" user in the attributes of the ORA92 directory under the ORACLE_HOME Directory. Click "Read and run" first, and then click "select, then "application ".
2. There is a "sqlnet. ora" file in the ORA92etworkADMIN directory under the ORACLE_HOME directory,
The content is as follows:
# SQLNET. ORA Network Configuration File: E: oracleora92etworkadminsqlnet. ora
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.