I can compile objects with SQL dev tool but not with a direct sql

hi,
This is a bit weird - I'm probably not familiar enough with Oracle's compilation process...
I'm creating a some functions / procedures / triggers. When I run the script to create them with Oracle's SQL Developer tool, usually they become immediately valid, and if not then I can manually right click them and choose Compile, and they're compiled correctly and become valid.
However, when running them with command line tools, they're uncompiled after created. I'm trying compile them with
ALTER PROCEDURE / FUNCTION / TRIGGER MySchema.MyFunction COMPILE;
and it always returns
Error starting at line 1 in command:
alter function MySchema.MyFunction compile
Error report:
SQL Command: alter function
Failed: Warning: execution completed with warning
alter function MySchema.MyFunction succeeded.
and the object remains uncompiled / invalid.
also tried with DBMS_... utils and got the same results.
Same with adding things such as PLSQL_WARNINGS = 'ERROR:ALL' to the stmt
But when I go in SQL Developer to the object, right click and click Compile, it compiles fine w/o warnings / errors and becomes valid.
Is there anything else I should run other than this alter..compile? Is SQL Dev tool doing something different than "alter function ... compile" when right clicking and object and clicking "Compile"?
thanks!

hi,
I'm having difficulties connecting with SQL Plus, since it seem to require at startup some admin user/password, which I don't have at the moment. Also tried to give it in command line the db name and params and it still require this pass... Will try to get it...
But again, when I'm right clicking the object in SQL Developer and click Compile, it compiles fine and becomes valid. After doing that, running
alter function mySchema.MyTestFunction compile;
passes with
"alter function mySchema.testfunction succeeded"
If I run this sql before doing compile with SQL Developer, it fails with what I posted before.
I wonder if SQL Developer does things other than the above compile stmt.
If I right click on Functions in SQL Dev and click Compile All or Compile Invalid, I can see the sql it about to generate, and it's the same as I tried - and fails as well... Only when right clicking the object and Compile it works...
A test func I tried, for example:
create or replace
FUNCTION testFunction(n in number)
RETURN NUMBER
IS
BEGIN
RETURN n + 1;
END;

Similar Messages

  • How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so with my Iphone 4s but not with my Iphone 5

    How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so using my Iphone 4s but not with my Iphone 5

    See this User Hint: https://discussions.apple.com/docs/DOC-3141

  • Windows XP - ok with 4.6.21 but not with 4.7.25 (getting_started example)

    I'm new to this.
    I have installled BD 4.7.25 and 4.6.21 from the msi onto my Windows XP (SP3) m/c
    When I compile the simple examples 'getting_started_examples' they
    work with 4.6.21 but not with 4.7.25
    The error happens in 4.7.25 when the dbp->open() is called:
    /* Now open the database */
    ret = dbp->open(dbp, /* Pointer to the database */
              NULL, /* Txn pointer */
              file_name, /* File name */
              NULL, /* Logical db name */
              DB_BTREE, /* Database type (using btree) */
              open_flags, /* Open flags */
              0); /* File mode. Using defaults */
    The error message is:
    illegal flag specified to DB_ENV->set_encrypt
    Any suggestions why this is happening?
    I am using lcc-win32 as the C compiler.
    Regards
    David

    Hi,
    You need to make sure you are using the dll of db4.7 rather than db4.6. Rebuild db4.7 dll and the example program, and make sure the db4.7 dll is used rather than that of db4.6.

  • I keep getting kicked off of my wifi with my MacBook Pro but not with my IPAD?

    I keep getting kicked off of my wifi with my MacBook Pro but not with my IPAD, what do I do?

    Hi, mmayers.
    Sometimes a simple power cycle of the router can correct the issue that you are experiencing.  However, the issue could be a little more complex.  Wi-Fi routers need adjustments to settings periodically for optimized performance with the constant progression of wireless device technology.  Below, I have included two articles.  The first article will cover basic Wi-Fi troubleshooting.  The second article covers the recommended settings for current Wi-Fi access points.
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT4628
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/ht4199
    Cheers,
    Jason H.

  • Can video chat with Imac non-intel but not with Powerbooks

    Hi,
    I have a Linksys WRT54G firmware v. 1.0.6 connected to a Comcast Cable modem. My IMac Intel Duo (OS 10.4.6) is connected via ethernet cable to the router. I am set to DHCP on router and IMac. My Quicktime settings is at 1.5mb, I have tried with firewall off and on with the appropriate ports open. I have tried upnp on and off.
    I can connect to other Imacs (non-intel) but not to powerbook G4's. With the Powerbooks I can text chat, but sometimes they can see my text, but I can't see theirs. And every video chat is a fail to respond with the powerbook, but they can connect with others.
    Is there anything else I can do?
    Please help. Thanks.

    Hi cmbell,
    Do you know how to access your modem ?
    This should give you somewhere to turn off DHCP.
    Then you go to System Preferences > Network and select the connection method you are using.
    Then select the TCP/IP tab.
    In the drop down that says Using DHCP change it to Manually. (or Manual with DHCP if doing James' way)
    Type the IP you wish to use in the next entry field.
    Copy the subnet mask form the Using DHCP
    Copy any DNS servers listed.
    Copy the router IP address which will be the modem or router in question.
    Hit Apply.
    Done.
    9:23 PM Sunday; May 7, 2006
    Message was edited by: Ralph Johns (UK)

  • I can use iMessage with all iPhone uses except for ONE person.  That person can use iMessage with all other users, but not with ME.  What's the problem???

    I can use iMessage with all other iPhone users that I communicate with, except for ONE person.  When I send to that person, it always goes through as a text message.  This person can use iMessage with pther people, but when they send me a message, it always goes as a text.  Why can we both communicate with other people using iMessage, but not with one another?

    Hi Russell,
    1) If you have OD set up and "editor" has UID 1111, then when they log in to any machine that's bound to OD as editor, they will get UID 1111. Therefore, there won't be any of these permission errors. This is typically the recommended approach.
    2) I assume you mean "You'd prefer to not using open directory?" Whatever the case, OD isn't mandatory with Xsan -- it's just that with multiple user accounts, managing them centrally tends to be easier. For 3 or 4 accounts and 3 or 4 machines maybe it's no big deal. If you go larger, it could get a lot more complicated. That said, if you set it up such that each machine has the exact same set of users (as you said, Mary = UID 502, Fred = UID 503, William = UID 504), then you can do what you want. Mary can log in from multiple machines at the same time, and in general you won't have permissions problems. Of course, if you try and read and write the same file from multiple workstations at the same time, you will get file locking issues, which will prohibit somebody from successfully writing the file.
    File locking issues are different from general permissions errors. The former basically says "hey, someone else is editing this file. Therefore I won't let you edit it right now... you can read it if you want though." Permissions means somebody saves it, and Xsan thinks you saved it and own the file, when you really don't.
    Quad-Core PMG5, 4 GB RAM, 7800 GT, 1 TB disk.   Mac OS X (10.4.4)  

  • 4s Hotspot tethering only works with USB and BT but not with wifi

    Hi,
    XP sp3 - iPhone 4s with ios 5.0.1 - on Three one plan
    Tethering with wifi works to a friends Samsung phone, wifi on the pc confirmed working with the apple store wifi, tethering with USB and BT works with good connection speeds on my laptop but when i try to tether with wifi it connects to the laptop at 54mbps and all appears well, even claims to have received a small amount of data packets, but no data comes to any browser. The iPhone reports 1 connection to the hotspot and stays connected with a non-pulsing blue bar after the first minute.
    In the PC i have tried this http://windows.microsoft.com/en-US/windows7/Change-the-order-of-network-protocol -bindings
    I've deleted my firewall (zone alarm) completely and turned off windows firewall to go naked surfing for a second even though they don't cause a problem with USB tethering, makes no difference
    I've deleted the network connection numerous times
    "repaired" connection
    dissabled and enabled the wifi
    turned off the wireless with a hardware switch and on again
    disabled bluetooth
    rebooted many times
    reinstalled itunes (latest)
    loads more things i can't remember
    This is causing me a nightmare. I've been through everything i can find online, been to the Apple store genius bar (genius appeared to have sub zero knowledge / interest as it involved a MS machine), been to a Three shop (legally not allowed to touch my PC apparently) and been to a Sony shop (laptop make, not their fault if my iphone doesn't work). All very frustrating.
    Please help if you can! Any suggestion will be tried unless it involves sledge hammers or lakes, and only then for a few more days at most.

    Turned off bluetooth on phone, turned off hotspot and on again, phone asked if i wanted to turn on bluetooth or go with USB and wifi only, said usb/wifi only. Still nothing. Rebooted PC and iphone. Turned on hotspot, pc seemlessly connects to network, still no data comes.
    One odd thing is zone alarm asks me to "select a security zone for the wireless network at ip address: *******.0" every time and doesn't seem to remember the setting over sessions. When i get the status of the connection the ip address is *****.2 and default gateway is same ********.1 Not sure if that's anything.
    Also getting a javascript error about an undefinded component (trustcheckermozilla) since i updated zonealarm but as i said even completely uninstalling zonealarm made no difference. I'll update firefox as well but tried with IE and still no data.

  • Left most usb port works with usb 3 devices but not with usb 2 devices

    Can someone enlighten me on this issue? I have a MBP mid 12 that seems to have issues with usb 2 devices such iPods, HHDs, etc. The same port works fine with usb 3 devices. I have tried several solutions but not avail such as resetting the SMC, PROM, disconnecting the battery and reinstalling OS X from scratch. Is there anything Im missing? I still don't believe is a hardware issue but something wrong in the firmware...

    Can someone enlighten me on this issue? I have a MBP mid 12 that seems to have issues with usb 2 devices such iPods, HHDs, etc. The same port works fine with usb 3 devices. I have tried several solutions but not avail such as resetting the SMC, PROM, disconnecting the battery and reinstalling OS X from scratch. Is there anything Im missing? I still don't believe is a hardware issue but something wrong in the firmware...

  • Class loading works with jre1.3.1 but not with jre1.4.0

    Hello,
    My JWS application use the following line to create an XMLReader:
    XMLReader rdr = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser" );
    Everything works fine with jre1.3.1, but with jre1.4.0 or jre1.4.1 I experience a very strange behaviour:
    1) When my application is downloaded and executed for the first time, everthing works fine.
    2) When I quit the application and I launch it again, an Exception is thrown (the system in unable to load the Class org.apache.xerces.parsers.SAXParser).
    3) If I tell JWS to show the console, everthing works fine again. If I tell JWS not to show the console, the Class can't be loaded anymore.
    Any idea ?

    Hi.
    I have also been experiencing problems in using Java Web Start for my application. When i tried certain functions of my application like saving and updating, I will faced this problem:
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found
    In the previous email in the forum, it was said that this problem was overcame, but I do not really know to how apply the solution given below:
    /* The following code is not used for now because
    * the code in createXMLReader() which dynamically          
    * allocates the class does not work the with          
    * Web Start class loader.          
    * This can be used again once Sun starts shipping          
    * Xerces 2.x with the JRE. They have already changed          
    * the XML development pack to use Xerces 2.x instead          
    * of Crimson, but as of 1.4.1, they are not updating          
    * the JRE distribution.           
    //String className = System.getProperty("org.xml.sax.parser");     
    //if (className == null) className = "org.apache.xerces.parsers.SAXParser";          
    //try {          
    //     tParser = XMLReaderFactory.createXMLReader(className);          
    //} catch (SAXException e) {          
    //     tParser = XMLReaderFactory.createXMLReader();          
    XMLReader tParser = new org.apache.xerces.parsers.SAXParser()
    Can anyone enlighten me on how to overcome the SOAP Factory problem? Thank you.

  • How to open .snp files with Microsoft Office 2007 installed? It works with MS Office 2003 but not with MS Office 2007!

    I have MS Office Pro Plus 2007 installed on my computer. I also have MS Office 2003 installed on another computer. Snapshot viewer is installed on both. My work snapshot files works with MS Office Access 2003 but not recognized by MS Office Access 2007. It would not allow me to save them either! Is it a problem with FireFox (3.6.8)? However, I do not have problem opening them up using IE7/8 on both computers. Any ideas? Thanks.

    Are you clicking a download link from an email message on an OWA or webmail site? Do you get the open/save dialog for the .snp files? In that case, you should be able to associate them with the Snapshot viewer. If Firefox does not remember this and you have to do it each time, it usually indicates that the server is not sending a specific content type, just the generic "this is some binary content" content type.

  • Cs4 work with 10.10.1 but not with 10.10.2

    CS4works sith 10.10.1 but won't with 10.10.2. Any ideas?

    As CS4 is not supported anymore you will have to upgrade to a later version.
    Even if it was running on 10.1 I would not recommend to go back, as it was also an unsupported OS and it is not guaranteed that it would always work and you would have to live with bugs which have been repaired with 10.2 from Apple.

  • Why Is it that I cannot find my album covers for many of my Itunes  for my IPOD? However I find them online with Google or bing but not with ITUNES Store. The thing is I can't drag and drop them into my itunes folder

    Why Is it that I cannot find My album covers for my Itunes at the Itunes store? But I can find them online searching with Google or bing/

    Hi, I had sometimes (not always) the smae problem.  Solved it by saving the pic to my desktop and then opened it from itunes (via ADD pic).  That solved my it for me.  Rgds

  • I can sign into itunes on my computer but not with my ipad or my iphone 4s

    I am able to sign into itunes on my computer but when tring to
    on my iphone 4s it keeps coming up with (incorrect apple id or password)
    same with my ipad mini

    Hello nick,
    Thanks for dropping by our Support Community!
    The following article would be a great place to start in your efforts to restore the iTunes Store's functionality to your computer.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • Can open PDF with Reader V 8 but not with V 9

    My Problem is that I can open the PDF  C0000000005.pdf with every Version of Adobe Reader, but the PDF  C0000000006.pdf only opens with older Versions then Adobe Reader 9.1.
    The Adobe Reader 9.1 can also display the PDF  C0000000006.pdf when I open another PDF before.
    Is this a bug or is there anything what is must change in the options?
    Thanks in advance,
    Martin

    I have install the Version 9.1.2 on another PC too.
    And when no Acrobat Reader is already open and I make a double click at the C000000006.pdf, the Reader can not show this PDF.
    But it works fine, when I open first the Acrobat Reader V9.1.2 and then I choice the PDF over the menu.
    What can be different on this two methods to open the PDF?

  • How can I send emails to a list of email addresses using mail merge  feature in Microsoft Word for Mac? It would work with the power pc but not with macbook Air

    I want to send an email and personalize it to several contacts. I could always do it with my old Power PC using Microsoft Office Word for Mac but cannot access my emailoption when I use the Macbook Air. Anyone have a solution??

    No way for us to know for sure (without similar product/issues) but the
    HP Support site suggests that with the current Mavericks OS X 10.9.x
    their drivers should be available through Apple Software Updates:
    http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/HP-Product-Support-using- Apple-Software-Updates-for-new-OS-X/td-p/3086229
    However that may be limited to certain models of printers or scanners that
    already had been known to be working under OS X as of that date in a
    prior OS X (such as 10.8.5, 10.7.5, 10.6.8, etc) with earlier product support.
    •Drivers and Downloads for Printers, Scanners, & More - HP Support:
    http://www8.hp.com/us/en/drivers.html
    A link to Mac OS X Support's List Printer & Scanner software (HP+ Other)
    •OS X: Printer and scanner software available for download
    HP Officejet t65 All-in-One Printer
    {According to this page, your old printer has only Windows & Linux drivers
    but you may or may not look into third-party driver support through such
    sites as Gimp; though unlikely to be available with Mavericks, or Yosemite}
    •HP Support Forum - Home:
    http://h30434.www3.hp.com/psg/?lang=en&cc=us
    You may be able to get a deal on a new printer as they are rapidly obsoleted.
    PS: edit to add... there was a Gutenprint driver reference for T65 Printer here:
    Mac OS X 10.5: Included printer drivers
    Yet a driver for ancient Leopard 10.5.x may not be suitable for Mavericks 10.9.x
    but the Gutenprint lead may be helpful to locate whatever may exist; or not.
    https://www.google.com/?gws_rd=ssl#q=gutenprint+mavericks
    Good luck & happy computing!
    edited

Maybe you are looking for

  • How to take remote disk backup on AIX

    Dear All, I want to take a disk backup of our Development system. I will take the backup on an USB external HDD which is connected to a Windows XP system. Both the Windows XP and DEV system are on same local network. The external HDD has NTFS file sy

  • How do I get to my backed up files, they aren't syncing

    After I reset my 3rd gen Ipod touch it won't sync anything, movies, music, or anything saved in my backup, my back up is up to date, any help ? But it says I have backed up files,

  • IPad keeps freezing and flashing and jumping to other apps

    My Iliad mini is one year old. About 3 months ago it started acting up. It flashes on and off within an app. Sometimes in a game it makes moves for me. I tried updating but I keep getting an error because the update never completes.

  • Performance tuning for data retrieval for PCL4 cluster

    Hi all, I am using PCL4 cluster to read history of employee data. The FM modules used are HR_INFOTYPE_LOG_GET_LIST and HR_INFOTYPE_LOG_GET_DETAIL . Currently it is taking lot of time. Do we have any better methods. Thanks in advance. Regards, tjgupta

  • How to get characters between quotes

    Dear All, Ther is a line in the code lv_v_report :='abcdef' I want to get only the characters between the two quotes i.e abcdef. Can someone suggest me how to do this. Regards, Gowtham.