Implementing snapshot replication using pl/sql and dbms_sql

Hi All,
I'm trying to implement snapshot refresh programmatically using a control table to trigger the event and a separate pl/sql stored procedure for each table refresh. I can drop and re-create the snapshots outside of pl/sql with no problem. Once in pl/sql, I'm using the dbms_sql package to wrap the snapshot drop and create statements. The drop statement works fine but I'm getting the following error on the create statement:
BEGIN pk_manage_data_replication.sp_refresh_lcanswertype; END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SYS_SQL", line 824
ORA-06512: at "SYS.DBMS_SQL", line 32
ORA-06512: at "AIRES_REFP.PK_MANAGE_DATA_REPLICATION", line 75
ORA-06512: at line 1
The stored procedure code is as follows:
procedure sp_refresh_lcanswertype is
cid           integer;
begin
-- drop the snapshot
cid := dbms_sql.open_cursor;
dbms_sql.parse (cid, 'drop snapshot lcanswertype', dbms_sql.v7);
dbms_sql.close_cursor(cid);
-- recreate the snapshot
cid := dbms_sql.open_cursor;
dbms_sql.parse (cid, 'create snapshot lcanswertype
          pctfree 5
tablespace lcdata as
select id
,possibleanswers
,creatorptr
,datecreated
,pk_manage_data_replication.sf_get_moddate(''LCANSWERTYPE'',moddate) moddate
from lcanswertype@airess1', dbms_sql.v7);
dbms_sql.close_cursor(cid);
end sp_refresh_lcanswertype;
Any ideas???
Thanks,
Jim

An old chestnut. You have been granted the privilege CREATE SNAPSHOT through a role (probably CONNECT). We can only build procedures (and views) on privileges that have been granted to the uuser directly.
Cheers, APC

Similar Messages

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • Writing into Excel file using PL/SQL and formatting the excel file

    Hi,
    I am writing into a excel file using PL/SQL and I want to make the first line bold on the excel. Also let me know if there are any other formatting options when writing into excel.
    Regards,
    -Anand

    I am writing into a excel file using PL/SQL
    Re: CSV into Oracle and Oracle into CSV
    check that thread or search in this forum...

  • How to generate formated (defined position) text and image using pl/sql and

    Hello,
    I need to use pl/sql to create a dynamic html page (or image , if possible) with defined positions for text and bar code. It is necessary because the page will be printed and it should be able to be read by one other process , OCR, that needs to have all the data in defined positions.
    Any suggestion are welcome.
    Thanks in advance,
    Emilio

    I don't think it's that easy. Notice that if you put the insert into an actual pl/sql block, you don't get the correct column pointer anymore.
    BEGIN insert into bob(col1, col2) values (123.12, 12345.12); END;
    ERROR at line 1:
    ORA-01438: value larger than specified precision allows for this column
    ORA-06512: at line 1
    Richard

  • Using PL/Sql And XML

    Hello,
    Am trying to use the xml packages from pl-sql. Could someone please tell me what priviliges are required to use these package fully. I also guess that public synonyms should be set up.
    Tia.
    Rgds.
    Kim.

    I have checked that the XML parser is installed using the suggested select statement. It seems ok.
    Logging in as dba user, using Desc xmlparser is ok.
    Created user XmlTesting, granted the roles javauserpiv and javasyspriv to this user. Desc xmlparser give error sys.xmlparser does not exist.
    More thoughts appreciated.
    Tia
    Rgds.
    Kim.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ilho Ye ([email protected]):
    You first need to install XML parser for java since XML parser for PL/SQL depends on it.
    Try this SQL and see if Oracle XML parser is already installed on your machine.
    select substr(dbms_java.longname(object_name), 1, 30) AS class, status
    from all_objects
    where object_type = 'JAVA CLASS'
    and object_name = 'dbms_java.shortname('oracle/xml/parser/v2/DOMParser');
    If you see the result that status is valid and class is 'oracle/xml/parser/v2/DOMParser.
    Then you are good to go.
    secondly try this after connecting sqlplus
    describe xmlparser
    If you do not get anything, then you need to install XML parser for PL/SQL.
    You can download it in which there is a readme that would help you to install from technet.
    Also make sure that you grant javauserpriv and javasyspriv privilege to the one who is going to execute XML.
    When you finish up installing all this, try the command, describe xmlparser again.
    If you now see the result, you are all set.
    From now on you can run PL/SQL to access and retrieve XML.
    Hope this helps !!! <HR></BLOCKQUOTE>
    null

  • Can implement port forwarding using win2003 routing and remote acccess?

    I have a sql server 2005 with a  internet ip address b and a computer onwindows 2003 with a internet ip address a .
    Now I want to use address "a" 's 14330 port to access sql server 2005 on ip address "b" with port 1433.
    I use router and remote access to implement this,but fail.
    in every server only have a adaptor and a ip.
    How to do it?
    Please tell me how to implement it from "routing and remote access" in detail.
    I dont want use netsh.

    Hi,
    I think this will not work. As we know, when a source computer send a request to SQL server, the packet should contain the following information.
    Source IP and port number (this port is a randomly generated)
    Destination IP and port 1433 (SQL by default)
    So we cannot control which port to use when connecting another service.
    Hope this helps.

  • JDev 10.1.3 Prod Bug in Structure Window when using PL/SQL and Stored Types

    Using JDev 10.1.3 build 3673
    When loading/editing a PL/SQL package with code like the following:
    rec := NEW Record001Row;
    Where Record001Row is a stored type on the database gives an "Error Expecting ;" in the JDev Structure Window. Once the above line is commented out, the PL/SQL program structure appears in the Structure Window. I can then uncomment the above line and the structure of the PL/SQL program stays, but the "Error Expecting ;" still appears.

    Logged the bug 5010466.
    Thank you for reporting this.

  • Advanced Replication using Oracle 8i and Linux

    Hi,
    My name is Sadhana. I am a software engineer. I have a doubt regarding Oracle and Linux. Well, I am involved in developing a customer care and billing solution with back end as Oracle8i (8.1.5)on Linux RH 6.1. I need your guidance is regarding the reliability of using Oracle on Linux as data file servers for critical applications like customer care and billing systems in telecom. The rating and billing engine will also run on linux servers. Only the client machined will have windows 98/NT. It will be helpful if you can throw some light on the replication features of Oracle particularly in Linux. For e.g. is it possible to keep a database server - Oracle on linux and a replication server on linux. Will it behave similarly like other replication servers (windows NT or Solaris etc.)? Is it reliable?
    Looking forward for your reply
    TIA,
    With Best Regards,
    Sadhana S Kamath

    Christian Seebode (guest) wrote:
    : Hi everybody,
    : will Oracle 8i be available for Linux ?
    : When ?
    : Or will there be a difference in availability for
    : the different options of 8i ?
    : Thanks for any information
    : Christian
    1.) Yes it will.
    2.) Nobody knows. (Oracle points to May/99...)
    3.) Yes, absolutely, since Enterprise Editions are poorly
    supported under Oracle/Linux
    Bye, Robert
    null

  • Tricky SQL - is it possible using just SQL and no PL/SQL

    Hello everyone,
    Here is my data
    create table experience (exp_id number(10), exp_name varchar2(20), root_exp_id number(10));
    insert into experience values (642, 'Test', 5172);
    create table experience_node (exp_node_id number(10), exp_node_type_id number(2));
    insert into experience_node values (5172, 1);
    insert into experience_node values (5173, 2);
    insert into experience_node values (5174, 2);
    create table experience_connector (exp_conn_id number(10), exp_conn_type_id number(2), exp_node_id number(10), parent_exp_node number(10) );
    insert into experience_connector values (4287, 1, 5173, 5172);
    insert into experience_connector values (4288, 2, 5174, 5173);
    insert into experience_connector values (4289, 2, 5175, 5174);
    When we run these queries:
    select     parent_experience_node_id
    from     experience_connector
    where     experience_node_id = 5175;
    select     parent_experience_node_id
    from     experience_connector
    where     experience_node_id = 5174;
    select     parent_experience_node_id
    from     experience_connector
    where     experience_node_id = 5173;
    select     parent_experience_node_id
    from     experience_connector
    where     experience_node_id = 5172;
    gives 5174, 5173, and 5172 and null. exp_node_type_id = 1 and exp_node_conn_type_id = 1 indicate that it is at the root level. Hope my explanation is helpful. What I am trying to get is - to get great great grant parent for 5175 which is 5172. Is this possible to do this with SQL?
    Thank you so much for you help.
    Best,
    Lakshmi

    We can use "model clause" ;-)
    create table T (id number(10), parentID number(10) );
    insert into T values (5173, 5172);
    insert into T values (5174, 5173);
    insert into T values (5175, 5174);
    commit;
    select parentID
      from T
    model RETURN UPDATED ROWS
    dimension by(id)
    measures(parentID)
    rules(
    parentID[9999] = parentID[5175],
    parentID[9999] = parentID[parentID[9999]],
    parentID[9999] = parentID[parentID[9999]]);
    PARENTID
        5172
    or
    select parentID
      from T
    model RETURN UPDATED ROWS
    dimension by(id)
    measures(parentID)
    rules(
    parentID[9999] = parentID[parentID[5175]],
    parentID[9999] = parentID[parentID[9999]]);

  • Reading SNMP packet using PL/SQL and XML

    Hi,
    Is it possible to read the content of a SNMP packet using MIB file converted into XML. I know it's possible to develop a java program which can collect SNMP packets from the network and inserts them into Oracle. The problem after that is how to read the content using MIB library file. It's possible to convert the MIB file into XML file but the problem is to create s PL/SQL block which can read the XML file and based on the content to translate the information from the SNMP packet. Is it possible?
    regards
    Edited by: user10484841 on Sep 24, 2010 3:15 AM

    Thank you for the reply!
    I have converted oracle MIB into xml using prtg's import tool. As far as I see prtg also uses xml as you can see below.
    So how I can translate string for example 1.3.6.1.2.1.39.1.1.1.1.1111111111 using xml and pl/sql?
    Can you give me direction where to start?
    <?xml version="1.0" encoding="ISO8859-1" ?>
    <oidlist>
    <system>
    <version>
    1
    </version>
    </system>
    <list>
    <entry>
    <name>
    RDBMS-MIB|rdbms db: #[1.3.6.1.2.1.39.1.1.1.1]|rdbms db index
    </name>
    <oid>
    1.3.6.1.2.1.39.1.1.1.1
    </oid>
    <type>
    vmAbsolute
    </type>
    <kind>
    mkTable
    </kind>
    <unittype>
    sutCustom
    </unittype>
    <units>
    </units>
    <indicator>
    rdbms db index
    </indicator>
    <scale>
    1
    </scale>
    <multiply>
    no
    </multiply>
    <max>
    0
    </max>
    <usegetnext>
    no
    </usegetnext>
    <is64bit>
    no
    </is64bit>
    <isunsigned>
    no
    </isunsigned>
    <isfloat>
    no
    </isfloat>
    <description>
    A numeric index, unique among all the databases from all products on this host. This value is a surrogate for the conceptually unique key, which is {PrivateMibOID, databasename}
    </description>
    </entry>
    <entry>
    <name>
    RDBMS-MIB|rdbms db info: #[1.3.6.1.2.1.39.1.1.1.3]|rdbms db info size units
    </name>
    <oid>
    1.3.6.1.2.1.39.1.2.1.3
    </oid>
    <type>
    vmAbsolute
    </type>
    <kind>
    mkTable
    </kind>
    <unittype>
    sutCustom
    </unittype>
    <units>
    </units>
    <indicator>
    rdbms db info size units
    </indicator>
    <scale>
    1
    </scale>
    <multiply>
    no
    </multiply>
    <max>
    0
    </max>
    <usegetnext>
    no
    </usegetnext>
    <is64bit>
    no
    </is64bit>
    <isunsigned>
    no
    </isunsigned>
    <isfloat>
    no
    </isfloat>
    <description>
    Identification of the units used to measure the size of this database in rdbmsDbInfoSizeAllocated and rdbmsDbInfoSizeUsed. bytes(1) indicates ndividual bytes, kbytes(2) indicates units of kilobytes, mbytes(3) indicates units of megabytes, gbytes(4) indicates units of gigabytes, and tbytes(5) indicates units of terabytes. All are binary multiples -- 1K = 1024. If writable, changes here are reflected in the get values of the associated objects.
    </description>
    </entry>
    <entry>
    <name>
    RDBMS-MIB|rdbms db info: #[1.3.6.1.2.1.39.1.1.1.3]| rdbms db info size allocated
    </name>
    <oid>
    1.3.6.1.2.1.39.1.2.1.4
    </oid>
    <type>
    vmAbsolute
    </type>
    <kind>
    mkTable
    </kind>
    <unittype>
    sutCustom
    </unittype>
    <units>
    </units>
    <indicator>
    rdbms db info size allocated
    </indicator>
    <scale>
    1
    </scale>
    <multiply>
    no
    </multiply>
    <max>
    0
    </max>
    <usegetnext>
    no
    </usegetnext>
    <is64bit>
    no
    </is64bit>
    <isunsigned>
    no
    </isunsigned>
    <isfloat>
    no
    </isfloat>
    <description>
    The estimated size of this database (in rdbmsDbInfoSizeUnits), which is the disk space that has been allocated to it and is no longer available to sers on this host. rdbmsDbInfoSize does not necessarily indicate the amount of space actually in use for database data. Some databases may support extending allocated size, and others may not. Note that a compliant agent does not need to allow write access to this object.
    </description>
    </entry>
    </list>
    </oidlist>
    *Note that the xml file is not full die to 30000 character restriction of oracle's forum
    regards
    Edited by: user10484841 on Oct 19, 2010 6:07 PM
    Edited by: user10484841 on Oct 19, 2010 6:07 PM

  • Different query behaviour (index or no index use) between sql and pl/sql

    Hi All,
    I have a query inside a cursor in a procedure, let's say:
    cursor c_emp (b_dept_no in number)
    is
    select *
    from emp
    where dept_no = b_dep_no;
    There is an non unique index on dept_no.
    In this procedure i first loop through another cursor which gets the dept_no and with this dept_no i go into a for loop for the c_emp cursor.
    When i run this procedure i see that the explain plan of above query gives me a Full table Scan on EMP, eventhough there is a index on dept_no and there are 1.3 million records in the em table. When i take the above query and explain it seperately, it uses the index on dept_no.
    I have rebuild/analyzed the tables and indexes, nothing seems to work. Even hints in the procedure cursor are not helping at all.
    I'm using Oracle Database 10.2.0.1.0 and have never seen such behaviour before.
    Anyone an idea what is going on here?
    Kind regards,
    Dave

    Hoi Rob,
    it's like i have three tables. The first i have to get data from for my output, then for every record of table one there are one or more records in table 2 and table 3.
    I had to create a xml file and it looks like this:
    <Table1 Record 1>
    <Name>...</Name>
    etc...
    <Table2 Record 1>
    </Table2 Record 1>
    <Table2 Record 2>
    </Table2 Record 2>
    <Table3 Record 1>
    </Table3 Record 1>
    <Table3 Record 2>
    </Table3 Record 2>
    <Table1 Record 2>
    etc.etc.etc.
    So that's why i programmed:
    for r_1 in c_table1 loop
    for r_2 in c_table2(r_1.dept_no) loop
    end loop;
    for r_3 in c_table3(r_1.dept_no) loop
    end loop;
    end loop;
    And when i look at the first record,
    it has 2 records in table2 en 16 records in table3. So nothing huge.
    For now i'm unable to trace the session. I will try to post the tkprof later.
    Kind regards,
    Dave

  • Parse JSON records using PL/SQL and store the output in Oracle Database.

    We have JSON data/record stored in a Oracle table as CLOB(database version 10g). We need to read/parse this JSON data and recognize the relevant tags and corresponding values in this JSON data and then insert these id/values into a separate Oracle staging table.
    Please let me know if there is any re-usable code available for this.
    We are looking for solution that does this manipulation in pl/sql. If this is not feasible, even Java code approach is fine.
    Regards,
    Kiranmayi.

    Hello,
    PL/JSON | Free software downloads at SourceForge.net
    ERASME - pl/sql library for JSON
    Regards
    Marcus

  • Error with insert using ASP, SQL and ValidationTool Kit

    i finally got my 1st of 5 pages setup to insert, validate and
    redirect.. but
    now i get an error i have no idea what it means
    The page loads fine, but when i attempt to submit the page to
    insert the
    record, i receive the error below...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC SQL Server Driver][SQL Server]Parameterized
    Query '(@P1
    text,@P2 nvarchar(50),@P3 nvarchar(50),@P4 nvarchar(50),@P5'
    expects
    parameter @P18, which was not supplied.
    /cemp_app1.asp, line 123
    Here is the line in question
    Line#123 MM_editCmd.Execute
    I dont understand why the error mentions Parameterized Query
    when im not
    doing anything special, just a simple insert(after being
    validated)
    Below is the insert code that seems to mention parameters
    If (CStr(Request("MM_insert")) = "form1") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_has_STRING
    MM_editCmd.CommandText = "INSERT INTO dbo.EmpCandidate
    (cssn, cfname,
    cmname, clname, caddr, caddr1, capt, ccounty, ccity, cstate,
    czip, chphone,
    cmphone, cophone, qlegal, ost, qref, refemp, webother, qage,
    qgrpast,
    qgrpastsel, qgrrel, qgrrelsel1, qgrrelsel2, qcontact, qterm,
    cdesiredpos1,
    cdesiredpos2, cdesiredpay1, cdesiredpay2, cte, availsun1,
    availsun2,
    availmon1, availmon2, availtue1, availtue2, availwed1,
    availwed2,
    availthur1, availthur2, availfri1, availfri2, availsat1,
    availsat2, casppos,
    cattsuce) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 201,
    1, 9, Request.Form("cssn")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 50, Request.Form("cfname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 50, Request.Form("cmname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 50, Request.Form("clname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 75, Request.Form("caddr")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202,
    1, 75, Request.Form("caddr1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 202,
    1, 10, Request.Form("capt")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 202,
    1, 15, Request.Form("ccounty")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 30, Request.Form("ccity")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 2, Request.Form("cstate")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 5, Request.Form("czip")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 10, Request.Form("chphone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 10, Request.Form("cmphone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 10, Request.Form("cophone")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 202,
    1, 1, Request.Form("qlegal")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param16", 202,
    1, 15, Request.Form("ost")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param17", 202,
    1, 10, Request.Form("qref")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param18", 202,
    1, 25, Request.Form("refemp")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param19", 202,
    1, 25, Request.Form("webother")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param20", 202,
    1, 1, Request.Form("qage")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param21", 202,
    1, 1, Request.Form("qgrpast")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param22", 202,
    1, 10, Request.Form("qgrpastsel")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param23", 202,
    1, 1, Request.Form("qgrrel")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param24", 202,
    1, 10, Request.Form("qgrrelsel1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param25", 202,
    1, 10, Request.Form("qgrrelsel2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param26", 202,
    1, 3, Request.Form("qcontact")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param27", 202,
    1, 1, Request.Form("qterm")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param28", 202,
    1, 35, Request.Form("cdesiredpos1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param29", 202,
    1, 35, Request.Form("cdesiredpos2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param30", 202,
    1, 25, Request.Form("cdesiredpay1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param31", 202,
    1, 25, Request.Form("cdesiredpay2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param32", 202,
    1, 15, Request.Form("cte")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param33", 202,
    1, 35, Request.Form("availsun1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param34", 202,
    1, 35, Request.Form("availsun2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param35", 202,
    1, 35, Request.Form("availmon1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param36", 202,
    1, 35, Request.Form("availmon2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param37", 202,
    1, 35, Request.Form("availtue1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param38", 202,
    1, 35, Request.Form("availtue2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param39", 202,
    1, 35, Request.Form("availwed1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param40", 202,
    1, 35, Request.Form("availwed2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param41", 202,
    1, 35, Request.Form("availthur1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param42", 202,
    1, 35, Request.Form("availthur2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param43", 202,
    1, 35, Request.Form("availfri1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param44", 202,
    1, 35, Request.Form("availfri2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param45", 202,
    1, 35, Request.Form("availsat1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param46", 202,
    1, 35, Request.Form("availsat2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param47", 201,
    1, -1, Request.Form("casppos")) ' adLongVarChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param48", 201,
    1, -1, Request.Form("cattsuce")) ' adLongVarChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
    End If
    %>

    Seems Adobe has a bit of a mistake there in the insert
    behavior.
    This line appears just below the query (you'll see VALUES
    with a lot of
    question marks):
    MM_editCmd.Prepared = true
    Change it to
    MM_editCmd.Prepared = false
    That will fix you up.
    "Daniel" <[email protected]> wrote in message
    news:f05ce4$s04$[email protected]..
    >i finally got my 1st of 5 pages setup to insert, validate
    and redirect..
    >but now i get an error i have no idea what it means
    >
    > The page loads fine, but when i attempt to submit the
    page to insert the
    > record, i receive the error below...
    >
    >
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e14'
    > [Microsoft][ODBC SQL Server Driver][SQL
    Server]Parameterized Query '(@P1
    > text,@P2 nvarchar(50),@P3 nvarchar(50),@P4
    nvarchar(50),@P5' expects
    > parameter @P18, which was not supplied.
    >
    > /cemp_app1.asp, line 123
    >
    >

  • Add and Remove Publishers from Replication Monitor using T SQL

    Is there any possibility to add an Publishers from Replication Monitor using T SQL.i am trying to configure the replication using T SQL..i can create all other steps but didn't find any way to add publisher to the replication monitor..kindly suggest..

    Hi Snehasis,
    Tom is correct, there is no T-SQL command to add a publisher to Replication Monitor.  However, the server from which you launch Replication Monitor will automatically be added to Replication Monitor if it is a Publisher.  Also, you can add additional
    Publishers using the Add Publisher dialog.
    This is covered in
    Add and Remove Publishers from Replication Monitor
    Brandon Williams (blog |
    linkedin)

  • Short cut problem? Can it be implemented by using PL/SQL?

    I am an oracle fan from China. This is the first message I published on the forum. Thanks your kindness.
    Now, We are faced with a problem of the shortest roadsect problem. The table has such columns:
    startcrossingid, endcrossingid, roadsectid, roadsectlength
    1 2 1 100
    1 3 2 90
    1 4 3 80
    2 5 4 70
    3 5 5 85
    4 5 6 95
    Column startcrossingid means the start point of a roadsect. column endcrossingid means the end point of a roadsect. column roadsectid means a roadsect.
    column roadsectlength means the length of a roadsect.
    We want to implement it by using PL/SQL, such as by
    a stored procedure. I am trying to find the solution.
    If you have some usful suggestion or code, please give
    me some help. Any suggestion is very thankful!
    Xiexie!

    Hi,
    Good challenge, try it for sortest way from 1 to 5 :
    SQL> select * from road;
    STARTCROSSINGID ENDCROSSINGID ROADSECTID ROADSECTLENGTH
                  1             2          1            100
                  1             3          2             90
                  1             4          3             80
                  2             5          4             70
                  3             5          5             85
                  4             5          6             95
                  5             6          7              5
    7 rows selected.
    SQL> select x.roadsectid
      2  from ------------------------------------
      3  (select *
      4  from
      5  (select abs(num1-num2) as path,b.*
      6  from (select level as num1,rownum as num2,a.*
      7        from road a
      8        where ENDCROSSINGID<=5
      9        and    STARTCROSSINGID>=1
    10        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) c) x,---------------------------------
    11  (select d.path, min(d.lengthroad) as lengthroad
    12  from
    13  (select path,sum(ROADSECTLENGTH) as lengthroad
    14  from
    15  (select abs(num1-num2) as path,b.*
    16  from (select level as num1,rownum as num2,a.*
    17        from road a
    18        where ENDCROSSINGID<=5
    19        and    STARTCROSSINGID>=1
    20        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) c
    21  group by path) d,
    22  (select abs(num1-num2) as path,b.*
    23  from (select level as num1,rownum as num2,a.*
    24        from road a
    25        where ENDCROSSINGID<=5
    26        and    STARTCROSSINGID>=1
    27        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) e,
    28  (select abs(num1-num2) as path,b.*
    29  from (select level as num1,rownum as num2,a.*
    30        from road a
    31        where ENDCROSSINGID<=5
    32        and    STARTCROSSINGID>=1
    33        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) f
    34  where d.path=e.path
    35  and e.STARTCROSSINGID=1
    36  and  d.path=f.path
    37  and f.ENDCROSSINGID=5
    38  group by d.path) y,----------------------------------------------------------
    39  (select min(d.lengthroad) as lengthroad
    40  from
    41  (select path,sum(ROADSECTLENGTH) as lengthroad
    42  from
    43  (select abs(num1-num2) as path,b.*
    44  from (select level as num1,rownum as num2,a.*
    45        from road a
    46        where ENDCROSSINGID<=5
    47        and    STARTCROSSINGID>=1
    48        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) c
    49  group by path) d,
    50  (select abs(num1-num2) as path,b.*
    51  from (select level as num1,rownum as num2,a.*
    52        from road a
    53        where ENDCROSSINGID<=5
    54        and    STARTCROSSINGID>=1
    55        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) e,
    56  (select abs(num1-num2) as path,b.*
    57  from (select level as num1,rownum as num2,a.*
    58        from road a
    59        where ENDCROSSINGID<=5
    60        and    STARTCROSSINGID>=1
    61        connect by prior ENDCROSSINGID=STARTCROSSINGID) b) f
    62  where d.path=e.path
    63  and e.STARTCROSSINGID=1
    64  and  d.path=f.path
    65  and f.ENDCROSSINGID=5) z----------------------------------------------------------
    66  where x.path=y.path
    67  and   y.lengthroad=z.lengthroad;
    ROADSECTID
             1
             4
    SQL> Replace 1 and 5 by parameters...
    Good luck
    Nicolas.

Maybe you are looking for

  • Need help installing 10.8 on my erased hard drive

    Hi,I bought 10.8 and created a bootable disk on a flash drive.   Then, instead of erasing my drive as part of the installation of 10.8, I booted from the flash drive, the used Disk Utilities to erase the drive.  (I know you don't have to erase your d

  • Can't see incoming caller's name

    In my outgoing calls list I can see phone number and person's name (taken from contacts), but in incoming one there is only phone numbers Is there any option to turn on showing contact name?

  • Why is Netflix the only site that won't work?

    I am using Chrome but I've tried Safari as well. It has done this a couple times before and I cleared all my history and cookies and passwords, etc. and it worked again but now it's not working at all. I've shut down and restarted the browser and my

  • 2nd Generation Touch Wheel iPod - iPod displays a folder icon with a ! mark

    Hi, My girlfriend has been using my old 2nd generation touch wheel iPod, and yesterday she was trying to listen to some music, and the iPod would load the name of the song, artist, album etc, and then skip to the next song without playing any music,

  • Cursor problem ! (equivalents for insert, update and delete)

    Hi, I am having following three sql statements. I am using Oracle 8i. ==================================================================================================================== Statement1 : Insert Insert Into DBSchema.DstTableName( dstCol1,