How can I access Constants Decalred in PL/SQL Package

CREATE OR REPLACE PACKAGE PKGDIMCONSTANT AS
ABCD123 CONSTANT NUMBER := 1942; --:NodeDef
END PKGDIMCONSTANT;
Testing in PL/SQL it is working
BEGIN
RetVal :=PKGDIMCONSTANT.abcd123;
dbms_output.PUT_LINE( RetVal ); END;
The output is : 1942

Assuming you want to access them from SQL...
You cant directly access the constants from SQL. I tried some tests and did not work.
What you can do is write a PLSQL function in the same package to return the value of that constant and use that function.

Similar Messages

  • How can a type defined in a PL/SQL package be used by an object?

    How can a type defined in a PL/SQL package be used by an object?
    In the PL/SQL Reference manual it says that object attributes can be
    types defined inside a PL/SQL package: How do you make this work?
    Here is a sample that demonstrates what I am trying to do:
    CREATE OR REPLACE
    PACKAGE Phone IS
    TYPE Phone_rectype IS RECORD (
    Main VARCHAR2(12),
    Home VARCHAR2(12),
    Business VARCHAR2(12),
    Mobile VARCHAR2(12),
    Fax VARCHAR2(12),
    Pager VARCHAR2(12)
    END Phone;
    CREATE OR REPLACE
    TYPE customer_type
    AS OBJECT (
    CustNo NUMBER,
    CustName VARCHAR2(30),
    PhoneNumber Phone.Phone_rectype
    This is the error that i get:
    Warning: Type created with compilation errors.
    Errors for TYPE CUSTOMER_TYPE:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    5/15 PLS-00201: identifier 'PHONE.PHONE_RECTYPE' must be declared
    null

    That's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?

  • How can I access my iCloud account on the web from my phone

    how can I access my iCloud account on the web from my phone
    iPhone 5 iOS 8.3
    I have iCloud turned on, location services on, find my phone works but when I try to access iCloud via Safari on the phone it takes me to a page Apple.com,
    iCloud then three options
    set up iCloud on my phone (i have)
    Install Find my phone, it is installed and it works from my MBP
    or install find my friends, I don't need that I have no friends.
    my calendars and contacts and bookmarks and all are all sync'd and working on the phone, but i thought if I typed in iCloud.com on the phone in Safari I would go to my iCloud web page that looks like this on my Mac.
    Is that NOT how iCloud should/would look on my phone via Safari?
    This is maybe a dumb question after 3+ year of iPhone'ing
    thank you for clarifying or helping me to understand
    jojoguitar_mmn_usa

    I've been playing with a Galaxy here at work and here's what I've found so far - please feel free to jump in and suggest alternative methods to configure or access the various icloud components.
    So the original Q: Can you access your icloud account on Android?
    Not entirely: the website can't be used from an android browser (not properly - even with Dolphin HD and posing as different browsers it won't load correctly.  So Find my iphone is out, so is the address book or looking at your e-mail or calendar just in a browser window
    I was able to setup my e-mail using the IMAP settings published here:
    http://support.apple.com/kb/HT4864
    Be sure to setup the account manually - and note if you have trouble using SSL try TLS (that worked for me)
    Address book is a no go so you'll have to use iTunes to sync all your contacts over to Gmail - if you still have an iPad it means managing contacts in two places though .  Same goes for your calendar - transfer it to Gmail and forget about iCloud's calendar.  Nice instructions here: http://howto.cnet.com/8301-11310_39-20064060-285/how-to-switch-from-iphone-to-an droid/
    iWork is an Apple proprietary bit so don't expect much there.
    So in my case, if I'm really going to make the switch to a Galaxy from my iPhone it really means I'm going to have to switch to using google as the backend.  The timing to swap over to a galaxy/android phone is not the greatest - given that I'd have to give up my Apple addiction (syncing photos and itunes and losing access to my device tracking).  Plus I still have an iPad and a mac and like living in the Apple ecosystem.  I think I'll wait and see what the new iPhone looks like before I commit

  • I sent my iphone for repair. before I sent it I did a backup (on the 7th of august). no i got my phone back but in iTunes I only see a backup from 21st of july. How can I access my latest back up?

    I sent my iPhone to Apple for repair. Before I sent it I did a backup (on the 7th of August). Today I got it back, but my iTunes only shows me a backup from 21st july and from today. How can I access my  backup from 7th of august?

    You should really read the manual.
    "How do you restore from backup? "
    Restore.  When given the choice, choose to use backup.
    "And how can I check to see if the pics and videos are on my computer somewhere first??"
    They would only be where you put them.  What program did you use to import them?  Pics/vids taken with ipod are not part of the sync process at all.  You should be importing them just as you would with any digital camera.
    If you did not import them, then they are not on your computer.

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • How can i access dmz server via public ip from inside?

    hi all !
    As shown in Figure,how can i access the server in dmz zone via public?
    i can access it via private ip 192.168.1.1 now,but i can't access it via 101.100.1.2.
    who can help me ?
    thank you !

    Hi,
    You would have to configure Static NAT from DMZ to INSIDE for the server in the same way you have done for DMZ to OUTSIDE.
    Basically in the following way for example
    object network DMZ-WEB
    host 192.168.1.1
    nat (dmz,inside) static 101.100.1.2
    This would enable your users on the "inside" to access the "dmz" server with the public IP address. And naturally only with the public IP address after this NAT.
    Hope this helps
    Please do remember to mark a reply as the correct answer if it answered your question.
    Feel free to ask more if needed
    - Jouni

  • Hi there I lost my password for my original iTunes account I can't recover it because the email address it is registered under is not longer valid How can I access my old account?

    Hi there.
    I did a factory restore and then restored it with iCloud back-up. I have been using lots of Apple products and i have used three different email adresses. Almost all apps restored perfectly but everytime i try to play a song in the Music app, i asks me for a Apple-ID i had no idea i have used.
    Hence:
    I lost my password for my original iTunes account
    I can't recover it because the email address it is registered under is not longer valid
    How can I access my old account?
    Can't find a place to change the email address to my new one without the password which I no longer remember.
    There is no way to just erase Apple-ID's on my device either.
    What to do? Should i ju give up and start from scratch and delete 2 years of stuf?
    Cheers!

    If you can remember the answers to the security questions when you set up that account - I think that you can reset the password without needing email authentication. You can try it here. Read it and see if it's possible. But if you can't remember the answers to the questions it will not work.
    http://support.apple.com/kb/ht1911

  • How can I access Address Book data from an older version of the application to transfer it to a newer version of Mac OS running on a second hard drive on the same MDD G4?

    I installed a hard drive from one PowerPC Dual 1.25 GHz MDD into another one with an older version of the OS X.  all my Address Book data are on the older hard drive, from which I now boot the computer.  When I launch Address Book as an app on the hard drive with the newer version of the OS, I get an error message that says I cannot run the version of Address Book from the older hard drive on the newer OS.  How can I access the data on the older hard drive version of the Address Book app so that I can transfer it to the newer version of the app on the boot drive?  The "Import" functionality will not work. I will be grateful for any help I can get.  I would also like to uninstall the older version of OS X from the older hard drive.

    Boot from the older version of OSX, then in AB use the File>Export>Export vCard after selecting all in AB.
    Then boot from the new OSx & use the new AB to import that VCF file.

  • (261936172) Q general How can I access an EJB hosted on a remote server?

    Q<general> How can I access an EJB hosted on a remote server?
    A<general> The ability to add EJB control files enables you to access an EJB that
    is deployed to the server on which your web service is running. When you select
    "add EJB control" you need to supply the home and remote interfaces for the EJB
    as well as the JNDI name. This does not provide you with the capability for creating
    a control for a remotely hosted EJB. To use a EJB hosted on another server you
    will have to provide the appropriate code within your web service itself. You
    will have to programmatically gain to access the JNDI for the remote server, lookup
    up the home stub and use it to create the remote stub for the EJB. Of course,
    to make this work you must have the necessary client interfaces in you classpath
    (home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
    file to the lib directory in the webservice WEB-INF folder.

    just define the different server path in the description xml file
    <jndi-name>jnp://serverA(B)/....</jndi-name>

  • How can I access my iPhone 5 videos that I record?

    I took a couple of videos, including one long video (about 30 minutes) to test the quality and it was wonderful! The problem is that I can't do anything with them. They are (obviously) too large to send to people via things like email. I tried connecting it to my computer via usb to put the files onto my computer (my preferred method of dealing with files) but the video files were not there at all.
    From my computer, there was really only one available path of folders and it took me to my camera roll where I could transfer/copy/save all my photos to my pc (which is great because I have taken many nice pictures). The videos, which were also stored on my phones camera roll were not visible in the folder at all (though the folder properties indicated it was 5GB large as if to say it did have the videos).
    So my question is basically: how can I access my videos (and ideally get them onto my computer)?
    Other details: I do not own a Mac and my iPhone is my only Apple Product.

    I Figured it out!!!!
    My solution was to download the new iTunes and here is why I think it worked:
    I tried to download the old iPhone explorer thing to search for the file and it required iTunes, which I didn't have. I was running Vista because I had to reset my pc to factory defaults (poor old PC haha. if only I had money for a new one). I don't like iTunes at all so I never bothered with it. Anyway, I started downloading the new version of iTunes (10.something) and about 1/8th of the way through the install, my pc started installing driver software on its own. It turned out it was installing drivers for my iPhone 5 (this occurred 1/8th of the way through right after iTunes installed some Apple components stuff for PCs) and this time, when I looked in the phone's folder for its data, my 30 minute video was there !!! So I think what was needed was a driver on my PC for my phone which for some reason didn't install until I got some Apple components (which was the first part of the iTunes install).
    Thank goodness I don't need to touch iTunes and thank goodness it works! It is truly a wonderful phone and hopefully this will offer another solution to finding those pesky large video files (or large video file) that won't open up in the explorer.

  • How can I access contacts in PC Suite when my phon...

    My old E50 finally gave up and I bought a 2730 to replace it. My contacts are in PC Suite but I can't access them without connecting the phone first, which I can't as it's faulty. How can I access the contacts that I know are on the PC, without connecting the phone they came off? I don't have sync files.

    You can search in PC Suite's data folder for files named *.db: 
    The PCCSContact.db is SQLite3 database, you can use any SQLite3 reader to open it. There's also a tool: http://sourceforge.net/projects/noknokwhosthere/
    What's the law of the jungle?

  • Not all of my emails show up in my iphone account.  Only about two weeks worth - how can I access all of my inbox emails?

    Not all of my emails show up in my iphone account.  Only about two weeks worth - how can I access all of my inbox emails?  I have hotmail and am not sure if this is a sync glitch or what...?

    How are you accessing the "7 days" account: IMAP or POP?
    Are there other computers accessing the same account?

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • How can I access an unsupported usb device that's seen by system profiler

    is there a way to access an unsupported usb device? my parents bought my daughter a cheap and easy to use digital camera and I am looking for a way to access the photos. the camera's manual mentions that there is no mac driver and there are no plans to develop one. I plug it in anyways in the event the system / Iphoto recognizes this, But I get nothing on the desktop as in a generic disk image icon. I open system profiler and My G4 knows the camera is plugged in. If this interface between the two is recognized how can I access the camera?
    does a driver have to be written to allow access? I saw a usb dev kit on version tracker but I have no clue as to how to write a driver. I could get a flash card reader but I was hoping that there may be some back door or an app somewhere to allow me to get the photos off the camera.
    thanks!!!

    Hi, Israel.
    You wrote: " I plug it in anyways in the event the system / Iphoto recognizes this"See if Image Capture recognizes the camera. Launch Image Capture, which is in the Macintosh HD > Applications folder.
    Otherwise, you're probably going to have to go the route of using a card reader. While the connection may be USB, they may be using some non-standard implementation that requires a driver.
    Writing drivers is not something you'd want to even attempt since you didn't create the hardware!
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

Maybe you are looking for