Using get_application_property(CONFIG) in 6i and 10g

Hi,
for a short time, our application has to run with 6i and 10g at the same time. We have to use the new constant CONFIG also in 6i. How can I mask this constant that it works correctly. Implementing it like this doesn't work:
PROCEDURE gui$new_session
IS
pl_id ParamList;
form_name varchar2(100);
lo_connect varchar2(250);
lo_url varchar2(200);
lo_conf varchar2(50);
co_config CONSTANT NUMBER := 'CONFIG';
BEGIN
form_name := replace(pdb_anwendung.get_anw_exe('PRAG_MENUE45'), '.FMX','');
IF get_application_property(USER_INTERFACE) <> 'WEB' THEN
RUN_PRODUCT(FORMS, form_name, ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
ELSE
lo_connect := get_application_property(USERNAME)||'/'||get_application_property(PASSWORD)||'@'||get_application_property(CONNECT_STRING);
lo_conf := get_application_property(co_config);
lo_url := 'javascript:window.open("/forms/frmservlet?config='||lo_conf||'&form='||form_name||'&userid='||lo_connect||'","","location=no,toolbar=no,menubar=no,status=no,");self.close();';
WEB.SHOW_DOCUMENT(lo_url,'_blank');
END IF;
END;
Unfortunately, I can't set the constant CONFIG directly into get_application_property (what is working properly used directly in 10g) because then I get a compilation error in 6i. Can somebody help me?
Regards,
Heike

Clearly...
co_config CONSTANT NUMBER := 'CONFIG';... won't work because you are assigning a varchar value to a number. CONFIG (without the quotes) is a built-in constant in Forms 10g that has a value of 221. So you could try this (notice there are no single quotes)...
co_config CONSTANT NUMBER := CONFIG;... but I doubt that will compile in 6i as CONFIG won't be defined. So maybe you could use...
co_config CONSTANT NUMBER := 221;It's bad practice to hard-code a value like that though.

Similar Messages

  • Architecture for APEX using iAS 10.1.2 and 10g with Dataguard replication

    We are currently using APEX in a stand-alone architecture using iAS 10.1.2 on with 10g as the DB(all on the same server). Our APEX apps are fast becoming a significant part of our production environment and I would like to set up a redundant failover site using Dataguard replication. I am very familiar with the DB failover, but I am struggling with how I can set up iAS on the standby server.
    Oracle guidelines for iAS failover using Dataguard (this is not AS Dataguard) specify that the primary and standby server local hostname must be identical for the failover architecture to work unless you use a virtual host name. Due to restrictions in our environment I am not able to set the lcoal hostname the same on the primary and standby servers. As an alternative I installed iAS(10.1.4) using a virtual hostname on my primary server, but it appears that the servername that shows up in all the installation references after the installation is still the actual server name, not the virtual name.
    I am looking for guidance from someone that has successfully set up a iAS failover architecture using dataguard on servers that do not have the same local hostname.
    thanks

    Hi,
    I have the same problem. Do you find something about putting jsf in OAS 10.1.2 ?
    Regards

  • Using config file VIs and keep getting dequeue error

    So I am using the config file VIs and I made some of my own VIs with additional functions for the progarm I'm working on.  When I use the config file VIs on their own everything seems to work fine but then I use them from one of my custom VIs to another I keep getting a dequeue error in the "Save and Close INI.vi" VI.  Below is how I have it set up right now... basically as simple as I can make it using my VIs.  I attached a zip file with my subVIs and alsow the config file I was using if anyone finds time to look.
    I've been trying to figure this out for a while and I j ust can't see to find any reasion why I would get a queueing error.  I even dug down into the config file VIs and I'm really not sure why but it seems there is nothing in the queue.
    Thanks in advance.
    PS - don't mind the random notes and I know the disable is "messy" but I was just pulling it down and out of the way of what I was paying attention to.
    Attachments:
    INI VIs.zip ‏93 KB
    config.ini ‏1 KB

    It's unlike me to just give up on a problem so I kept looking at it and it turned out that my config file had a section label with no keys or values under it.  This is what caused all my problems.  Everything seems to be working 100% now.

  • Occasional ora-6502 using forms 6i and 10g

    Hi all.
    We have been experiencing some weird and unexpected ora-6502 errors in some of our forms 6i modules running against 10g (rel 1 or 2).
    Forms modules are correctly functioning and for some reason, one day an ora-6502 error suddenly pops up.
    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.
    I know that this may sound hard to believe, but it has happened several times. All we do is put some message built in, recompile all, and the error is gone (for a while).
    So my questions are:
    - Is this a known issue beween forms 6i and 10g Db?.
    - Is there a patch on Metalink ( we use Forms [32 bits] Versión 6.0.8.26.0 (Producción))
    - A workaround?
    and most important
    - Have anyone been exposed to a similar situation?
    Regards, Luis ...!

    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.Sounds like the form has not been "clean compiled" against the server on which it is running. Try a "Compile All", which causes all previously compiled program units to be compiled fresh.
    Or even better, clean out all the compiled code from your fmb before compiling the fmb on the server where it runs.
    See this topic:   Re: Why does this happen - find ';', replace with ';'?

  • Query using Materalized view in oracle 9i and 10g

    Hello
    There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
    After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
    Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
    Thanks

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • Why am I asked for a password when trying to use about;config, where is the password set and can I change/delete this?

    I tried to use about:config, but I was asked for a password. I don't remember entering a password and have never used the master password function. Where has this come from, and how can I change the password or get rid of the need for a password?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Using Oracle 9i Client and 10g Server on the same box

    Hi,
    All our applications are compiled using oracle 9i and the proc compiler for oracle 9i.
    However we run the applications against a 10g database which has oracle9i and 10g co-hosted on the same both. We achieve this by using the oracle 9 libclntsh.so shared library which uses shared memory (I assume) rather than having a listener and tnsnames.ora entry.
    My question is, is it support by oracle.
    Thanks,
    Iain

    You can achieve this by install them into different ORACLE_HOME

  • 9i and 10g on same server (Win 2000) - only use one a time.

    I am working on setting up an oracle server for testing purposes and wonder if it is possible to install 9i and 10g on the same server (Win 2000) without any conflicts? Only one would be used at a time.
    Thanks,
    Luke

    Yes. It is possible to have multiple version in windows. However, it is little tricky compare to unix environment.
    You can comfortably execute respective versions(9i and 10g) GUI interfaces. But you may have issue when you try to execute binaries from command prompt. Each Oracle installation will keep appending the environment variables(path, etc). You can have batch file for each version and execute it.
    GUI interfaces controled by windows registry. Each version will have separte registry entry with necessary variables.
    Ashok

  • Config Suse 9 and Oracle Database 10g

    Hi,
    I'm trying to install Suse 9 with Oracle 10g on a HP DL380 server and I need some information (This will be an environment for Portal applications):
    1) Can SuSE SLES run ok with Processor Hyper Threading (PHT)?
    2) What kind of RAID is better for this kind of installation: 1 or 5?
    3) System comes with blocksize 512. Is this ok for oracle or we must change to 8.192?
    4) Is there any major issue I must know before starting?
    Thanks in advance.
    Clotilde

    Hyper Threading is supported in linux since version 2.4.??. Suse's SLES 9 comes with a far more actual kernel and therefore - yes, it will work on a PHT-system.
    RAID-Level 5 is good for the normal stuff: binaries, user files like documents, sheets, a.s.o. but lacks of performance for database operations. Better use RAID1 or RAID 10 and a lot of disks - minimum 5 separate disksets to avoid concurrent disk operations which slow down your database rapidly!
    Well, having the operating system and oracle core on a RAID5 (min. 3 disks) is a good start. On the HP (Compaq) DL380 you will run out of mounting options for your disks - you have only six bays for harddrives. This is IMHO not the best choice for a database maschine, as long as you don't use external storage arrays.
    The blocksize topic is far more complex to describe. For this and your fourth point, I advise you to read the oracle documentation as a first start. Needless to say that the ORACLE PRESS have some very good written books covering the whole area of database administration (DBA).
    best regards,
    juergen

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • What mechanism Oracle 10g use for write (Insert/ Update) and Read (Select)?

    Hi
    What mechanism Oracle 10g use for write (Insert/ Update) and Read (Select)?
    Thank you

    Aren't the answers given in PL/SQL forum sufficient enough?Well, as the first answer in that forum directed the OP to this forum you can hardly blame them for the repost.
    There is some high-level stuff in the Concepts Guide. If that is insufficient the OP will need to tell us what more details they need to know (and perhaps why).
    Cheers, APC

  • Need Help on using Forge Config Manager and CAS. Questions listed in the content below

    Hi All,
    I have an existing Endeca pipeline implementation where we read the data sets (Product Catalog Information) from Oracle database using JDBC adapters. The data set undergoes a series of manipulation until it gets indexed to the Endeca system. We make use of PCI for dimensions and dimension values. However, we now want to extend PCI to also include the Product catalog information. The current implementation also does not make use of CAS adapters to consume the dimensions data in PCI. The next consideration is to implement PCI as close to Out of the Box provisions and standardize it. Therefore we are also considering to implement CAS.
    The questions are as below:
    1. What are the ideal parameters that should support the use of PCI implementation (Dataset + dimension + precedence Rules + schema information) ? Note: We DO NOT have any product catalog system (like ATG) between database and Endeca.
    2. Considering that we do not have any product catalog system to organize and maintain data, how feasible is it to read directly from database through CAS Adapters and process the data ?
    3. We also plan to introduce partial update pipeline in future releases. Keeping that in mind should CAS based approach help us to read from a record store at the time of partial updates ?
    4.in case we are limiting to a business case of implementing partial updates in the above explained existing design, should a custom CAS approach be a better design ? Custom CAS approach = writing the baseline output data to record store and later referring it at the time of partial updates.
    5. Will CAS based approach help to reduce the baseline timings ?
    6. What is the best way to export data to record store instance in the above design ? (Record store API / Command line utility / CAS crawl)
    Thanks,
    Nitin

    Hi Neeraj,
    You cam use both PI SLD and Solman Local SLD for LMDB synchronization. Now here you make to make sure that correct ranks are assigned to PI and Solman SLD. With the help of multiple sld, you can remove the cause of concern. Local SLD should always be of solman.
    For CR content. that you can do for solution manager system in a click.
    Divyanshu

  • Sorting in 6i and 10g reports

    Hello All,
    I am running 6i and 10g reports against a 10g database.
    I ran one of the 6i report and it generated a report in one sorting ordear
    and when i ran the same report on 10g ,it generated the report in ddifferent order.
    Both the reports r run against the same 10g database.
    The order by clause on the columns of the records r identical.
    Now i wanted to understand how it is sorting in different orders in both 6i and 10g reports?
    Thanks,
    Ranz

    Hi,
    Please note the fact that 6i Reports is not certified to work with 10g Database. Hence it becomes impossible to address the sorting behavior of 6i Reports, though there is nothing different in the way it works. I would suggest you to use 10gR2 version of Reports services with 10g Database which is certified and supported. Thanks for your understanding.
    Regards,
    Anand

  • Dflt report in 6i and 10g

    Hi
    I am trying to get a tillslip to print correctly after converting from reports 6i to 10g. The problem i think is that the outputfile generated in the 6i version is diffrent from the output file in 10g. The 10g version looks similar to postscript while the 6i output file does not mean anything to me.
    If i open the 6i test.dflt file it looks something like: =c0c1c32R
    If i open the 10g test.dflt file it looks something like:
    %!PS-Adobe-3.0 %
    %Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
    Using the 6i output file i can print the tillslip correctly in both the 6i and 10g environments. Using the 10g output file all the char in the output file prints including the comments (the %!PS-Adobe-3.0 % bit also)
    Any ideas how to get the output file the same. All report settings (DESFOTMAT, DESTYPE, ...) are the same. The dflt.prt file only differs as follows:
    printer "dflt"
    height 66
    width 80
    after page control(L)
    return        ""  (this line in 6i file is: return        "M" )
    linefeed control(J)
    Any ideas will be helpfull. I have tried creating the report as a .rtf, .pdf and .ps file and all of them print with the code inside and not just the tillslip info.
    Thanks

    Hi
    I afound that the problem is that the app server does not know about the printer as it is connected to a users PC. Thus when using the dflt desformat it selects the default printer language of the App Server printer. This is the reason why the files are diffrent.
    If I understand everything the process should be:
    1 - Run the report from forms (on app server).
    2 - Write the report to a file on App Server and then transfer the file to the user PC.
    3 - Send file correct printer on the user PC.
    The problem still remains on how to create the correct file which can be send to the printer connected to the users PC as the driver of the correct printer is not known too the App Server. The printer still prints the file incorrectly as the file is not created using its drive as what the case was when running it in 6i.
    Setting the MODE to character (which will enable you to provide a .prt file if you had one to give) will not work as the report contains an image.
    Regards
    Edited by: hfp843 on Sep 17, 2008 2:28 AM

  • Designer 6i and 10g on the same machine?

    I have Designer 6i and corresponding repository on my machine.
    The problem with 6i I can't save diagramm in HTML format
    I believe I can save in HTML format in 10g or other?
    Can I install on the same machine 10g designer?
    should I configure new repository?
    TIA

    See my update on your earlier question.
    As for running 6i and 10g on the same machine, yes you can do it. You just have to install them in separate Oracle Homes, and be careful when you tell them which version of EXP and IMP to use. There is one MAJOR caveat, however. They cannot use the same Designer Repository - 6i client won't talk to a 10g repository and 10g client won't talk to a 6i repository. You can upgrade a 6i repository to 10g with the RAU, but take a backup before you do - the only way to go back is to restore your backup. Besides, I think that if you upgrade to the last supported version of Designer 6i (you should be able to get it from MetaLink) you will get the Publish Diagrams utility.
    Frankly, my opinion is that there is only one reason to stay on 6i - if you need to generate and support 6i client/server Oracle Forms. If you don't use Oracle Forms, or if you have moved on to Web Forms with the middle tier Forms Server, I'd recommend an upgrade to Designer 10g and Developer 10g.

Maybe you are looking for

  • Closing references

    This question has been posed before and beaten to death ... and I've spent the good part of an hour perusing the discussions ... however ... I'm not satisfied with most of the conclusions. And the last discussion occurred last January, so there just

  • Oracle data from 9.2.7 to oracle 10.2.2

    Hi, I have upgraded sap from 46C to ECC6 with oracle 10.2.0.2 and has given the system for testing. Current production server is on 46 with oracle 9.2.7. Complete testing is completed on the upgraded ECC version. Now i have to move the live productio

  • Can I have both Firefox 3.6 and 4.0 installed on my laptop

    Some of my old programs, ie Roboform do not work with the new Beta 4.0. However, I like the new program's download speed. Can I load both on me computer Microsoft XP Laptop

  • Premiere Pro CC-MediaEncoder : Setting sequence composite linear color ?

    Hello, hello, Someone would tell me what is this option? Setting sequence> composite linear color (or GPU acceleration rendering quality max neccessary)? I wonder if the fact that my media encoder takes me 6 H encoding to make a video of 17mn which h

  • Dell's pla

    The new hddmp3player from dell is produced by creative, does that mean that the dellremotecontrol works also on the zen touch and visaversa?