Advertisement

08.08.2007 at 09:57AM PDT, ID: 22749941
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

ora-01036  illegal variable name/number.  I can't see it can you?

Asked by gjutras in Oracle 10.x, PL / SQL

Tags: ,

I'm getting an oracle exceptioin while running the following.
OracleParameter[] myParameters = new OracleParameter[] { new OracleParameter("SELECTEDREGIONS", OracleDbType.RefCursor, ParameterDirection.Output) };
XmlReader xRdr = oraclehelper.ExecuteXmlReader(myConnection,CommandType.StoredProcedure,"TEST_TESTPACKAGE.TEST_GETREGIONS_SP",myParameters);
the function is
public XmlReader ExecuteXmlReader(OracleConnection inConnection,
            CommandType inCommandType,
            string inCommandText,
            params OracleParameter[] inCommandParameters)
        {
            //create a command and prepare it for execution
            OracleCommand cmd = new OracleCommand(inCommandText,inConnection);
            cmd.CommandType = inCommandType;
            if (inCommandParameters != null)
            {
                foreach (OracleParameter op in inCommandParameters)
                {
                    cmd.Parameters.Add(op);
                }
            }
            cmd.BindByName = true;
            cmd.XmlCommandType = OracleXmlCommandType.Query;
            cmd.XmlQueryProperties.RootTag = "Result";
            cmd.XmlQueryProperties.RowTag = "Row";
            if (cmd.Connection.State != ConnectionState.Open) cmd.Connection.Open();


            XmlReader retval = null;

            //create the DataAdapter & DataSet
            retval = cmd.ExecuteXmlReader();



            // detach the OracleParameters from the command object, so they can be used again.
            cmd.Parameters.Clear();
            return retval;

        }

The stored proc is:
CREATE OR REPLACE package GJUTRAS.test_TestPackage AS
type sregions is REF CURSOR;
procedure  test_GetRegions_sp
(
 selectedregions out sregions
);
procedure  test_GetRegByDescrip_sp
(
 descript in varchar2,
 selectedregions out sregions
);
end test_TestPackage;
/
CREATE OR REPLACE package body GJUTRAS.test_TestPackage AS
procedure  test_GetRegions_sp
(
 selectedregions out sregions
)
is
begin
    open selectedregions for
    select * from ods.region;
end test_GetRegions_sp;
procedure  test_GetRegByDescrip_sp
(
 descript in varchar2,
 selectedregions out sregions
)
is
begin
    open selectedregions for
    select * from ods.region where description = descript;
end test_GetRegByDescrip_sp;
end test_TestPackage;
/Start Free Trial
[+][-]08.08.2007 at 01:22PM PDT, ID: 19657680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.08.2007 at 01:23PM PDT, ID: 19657695

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 07:47AM PDT, ID: 21096194

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, PL / SQL
Tags: illegal, variable
Sign Up Now!
Solution Provided By: gjutras
Participating Experts: 2
Solution Grade: B
 
 
[+][-]03.11.2008 at 02:59PM PDT, ID: 21100839

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628