Solved

DAAB error System.Data.OracleClient.OracleException: ORA-06550

Posted on 2008-06-20
8
1,117 Views
Last Modified: 2013-12-16
[WebMethod(Description = "Compare PriceList")]
        public DataSet ComparePriceListDelete(
            string OldPriceList,
            string NewPriceList,
            ref string Status)
        {
            string procedureName = "init_price.PRICE_LIST_REPORTING.price_list_deletions"; //schema.stored procedure
            try
            {
                Database db = DatabaseFactory.CreateDatabase("InitialPrices.Properties.Settings.ConnectionString");
                DbCommand dbCommand = db.GetStoredProcCommand(procedureName);
                db.AddInParameter(dbCommand, "p_old_price_list_id", DbType.String, OldPriceList);
                db.AddInParameter(dbCommand, "p_new_price_list_id", DbType.String, NewPriceList);
               
                db.AddOutParameter(dbCommand, "p_status", DbType.String, 255);
                DataSet ds = new DataSet();

                ds = db.ExecuteDataSet(dbCommand);
                Status = dbCommand.Parameters[2].Value.ToString();
               
                return ds;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
ORA-06550: line 1, column 18:
PLS-00905: object INIT_PRICE.PRICE_LIST_REPORTING is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 48

Expert Comment

by:schwertner
ID: 21837077
Have you established connection using parameters like:

Host=ntsl2003a;Port=1521;SID=ORCL1252

See
http://www.datadirect.com/developer/net/daab/index.ssp
0
 
LVL 7

Expert Comment

by:Dauhee
ID: 21837179
looks like the PRICE_LIST_REPORTING object is invalid

Could try the following query:
select status from all_objects where object_name = 'PRICE_LIST_REPORTING'
0
 
LVL 48

Expert Comment

by:schwertner
ID: 21837331
You have:
1. To figure out under what account have you logged to Oracle
2. See if there is  init_price.PRICE_LIST_REPORTING.price_list_deletions object

0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:mathieu_cupryk
ID: 21837796
guys what is going on here is that it is blowing up because there is null being
return. How can I fix this.

0
 
LVL 7

Accepted Solution

by:
Dauhee earned 500 total points
ID: 21838076
there is nothing to indicate null issues - why do you think that?

there is however an indication of an invalid object (as stated in my last post)
"PLS-00905: object INIT_PRICE.PRICE_LIST_REPORTING is invalid"

What result did you get from the query I supplied?
select status from all_objects where object_name = 'PRICE_LIST_REPORTING'
0
 

Author Comment

by:mathieu_cupryk
ID: 21838711
i am not sure where it is going wrong then
0
 
LVL 7

Expert Comment

by:Dauhee
ID: 21840396
Hi mathieu_cupryk thats for accepting my proposal. Is it still not working for you though?
0
 

Author Comment

by:mathieu_cupryk
ID: 21841002
it is working however, i must build a status function in C#.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VS 2017 18 105
I need help adding error trapping code to a  DataGridViewComboBoxColumn in my VB.Net application 7 38
Regarding swagger API 1 37
Adjust the codes 3 33
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question