我有一个电子政务系统,用的是Oracle 8.17的数据库,其中在对一个表格填写完保存时出现下面错误,各位高手给看下是什么原因:
Microsoft VBScript 编译器错误 错误 '800a03f6' 缺少 'End' /iisHelp/common/500-100.asp,行242 Microsoft OLE DB Provider for Oracle 错误 '80004005' ORA-01031: insufficient privileges ORA-06512: at "OAEXPRESS.GET_ID", line 29 ORA-06512: at line 1 D:\WEBOA\HTDOCS\../modules/include/pubfunction,行32 出错的文件的部分内容:'************************
'函数名:获取数据库记录的主键
'************************Function GetId(Names)
Dim cmd
set cmd=server.createobject("ADODB.Command")
With cmd
.Parameters.Append cmd.CreateParameter(,129,1,len(Names),Names)
.Parameters.Append cmd.CreateParameter(,3,1,1, 1)
.Parameters.Append cmd.CreateParameter("retval",131,2)
.CommandType = 4'adCmdStoredProc //这是第29行 .CommandText = "oaexpress.GET_ID"
.ActiveConnection = Conn
.Execute
End With
GetId = cmd.Parameters(2)
End Function
Function GetDocCataID()
m_strDocCatID=0
Query="select * from doc_catalog where WEB_SCREEN='" & SCREEN & "'"
Set rsMaxIDValue= Conn.Execute(Query)
If rsMaxIDValue.BOF AND rsMaxIDValue.EOF Then
Else
m_strDocCatID =rsMaxIDValue("CAT_ID")
End If
rsMaxIDValue.Close
Set rsMaxIDValue = Nothing
GetDocCataID=m_strDocCatID
End Function
Microsoft VBScript 编译器错误 错误 '800a03f6' 缺少 'End' /iisHelp/common/500-100.asp,行242 Microsoft OLE DB Provider for Oracle 错误 '80004005' ORA-01031: insufficient privileges ORA-06512: at "OAEXPRESS.GET_ID", line 29 ORA-06512: at line 1 D:\WEBOA\HTDOCS\../modules/include/pubfunction,行32 出错的文件的部分内容:'************************
'函数名:获取数据库记录的主键
'************************Function GetId(Names)
Dim cmd
set cmd=server.createobject("ADODB.Command")
With cmd
.Parameters.Append cmd.CreateParameter(,129,1,len(Names),Names)
.Parameters.Append cmd.CreateParameter(,3,1,1, 1)
.Parameters.Append cmd.CreateParameter("retval",131,2)
.CommandType = 4'adCmdStoredProc //这是第29行 .CommandText = "oaexpress.GET_ID"
.ActiveConnection = Conn
.Execute
End With
GetId = cmd.Parameters(2)
End Function
Function GetDocCataID()
m_strDocCatID=0
Query="select * from doc_catalog where WEB_SCREEN='" & SCREEN & "'"
Set rsMaxIDValue= Conn.Execute(Query)
If rsMaxIDValue.BOF AND rsMaxIDValue.EOF Then
Else
m_strDocCatID =rsMaxIDValue("CAT_ID")
End If
rsMaxIDValue.Close
Set rsMaxIDValue = Nothing
GetDocCataID=m_strDocCatID
End Function
解决方案 »
- 请教大家一个类似于一行转多行的问题
- oracle 安装号授权
- 用OCI,NUMBER(10)类型对应C程序用,应该定义什么类型?谢谢
- DB2 SQLSTATE 57055: 带有足够页大小的临时表空间不可用。
- oracle 索引问题!求解!求帮助!!
- 从TXT导入到ORACLE的CTL有问题,请帮忙解决!
- SQL语句实现像SQL Server的功能,该如何实现?具体功能请进入。。。
- Oracle的口令文件是怎么回事?与unix下的/etc/passwd不同?
- oracle 8i安装后为何没有8.0.X版中的管理工具
- 在WIN2003 Server下可以装上oracle9i吗?
- oracle 函数能否传整个field 作为参数处理?
- 递归查询的问题,谢谢执教
如果没有就需要对用户用grant进行授权。