Find the Oracle data source...

I inherited a ColdFusion 10 app with a backend Oracle 11g; Windows Server.    I am especially a DBA and not an expert in ColdFusion.  In the application code, they have the hardcoded data source.  In other words, when I move to Test I have to change the source data, load the modules and test.   After a successful test, I need to change the data source, once again, to download and the promoted to production.   I seem to remember in the old application, I used to support, the code was generic and the data source depends on what server you were lit; If the development, testing or production, you don't have to worry.  I don't remember how it was done.   What would be the best way to eliminate this hard coding and make it more automated?   I know I'm probably missing something, but you were all very helpful to me in the last few weeks, so I hope that he is not a stupid question.   Thank you.

I do not have Admin CF

You can specify that?  Do you mean that you do not have access to the CF Admin?

Not having access to the CF Admin, I'm not sure you can do something differently as you are now., unless you're writing a logic to examine the server host name or the domain name of the site and set the source of data accordingly.

If you can access the CF Admin, create two data sources: one for production and one for testing.  Then in application.cfc, you can write logic to examine the server host name or the domain name and indicate 'this.datasource' to whatever datasource is appropriate.

-Carl V.

Tags: ColdFusion

Similar Questions

  • SSRS for lack of outer join with the Oracle data source

    It seems to be a problem with the Oracle driver used in the Reporting SERVICES query designer.

    When you use an Oracle data source, if I create an outer join in the graphic designer, it automatically inserts '{OJ' before the join and '} ' after her.  This is an incorrect syntax for Oracle and refuses to start.  The curly braces and the JO editable in designer text, but if I go back to the graphic designer and immediately to reintegrate them.

    Only, this has started to happen a year or two ago - before that it worked, but with the old (+) syntax.

    Can it not be healed?  It makes things very difficult.

    -Geoff

    Hi Geoff,

    Thanks for posting in the Microsoft Community.

    However, the question you posted would be better suited in the Forums of the Oracle Support; We recommend that you post your query in Oracle Support Forums to get help:

    https://forums.Oracle.com/forums/main.jspa;JSESSIONID=8d92100c30d8fb401bcbd10b46c38c9ddf1a3242549a.e34SbxmSbNyKai0Lc3mPbhmSc3aNe0? CategoryID = 84

    If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • Error in the validation data source

    I install LivCycle on SUSE 10 with Weblogic 11 g and Oracle 10.

    When you try to post, the following error occurs:

    Validation of datasource...

    DataSource fail

    Name: IDP_DS

    JNDI:IDP_DS

    Invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    DataSource fail

    Name: RM_DS

    JNDI:EDC_DS

    Invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    Any ideas?

    Thank you!

    Using secure data sources?  More details here:

    http://blogs.Adobe.com/LiveCycle/2010/04/livecycle_on_weblogic_-_securi.html

    http://blogs.Adobe.com/LiveCycle/2010/09/increasing-WebLogic-as-JDBC-connection-pool-size-pour-LiveCycle-Contenu-services-ES2.html

  • WebLogic ResourceLimitException with the JNDI data source

    I deployed a third web application on my Weblogic Server and this application connects to the Oracle database using the JNDI data source that I defined in my weblogic server. Now, while I use the web app, I don't see any problems and after accessing the request for some time, it throws an exception like below-


    weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool test_db to allocate to applications, please increase the size of the pool and retry.. caused by: weblogic.jdbc.extensions.PoolLimitSQLException


    I have increased the size of the pool earlier and I do not use the web app for a few hours, then when I started to use it, then I get this error. How can I debug this problem using my Weblogic Server? Is there a log file which contains details on why all connections are still used?

    It could be connection leak problem and haveInitialCapacity and MaxCapacity the same value(higer).

    Enable TestConnectionsOnReserve and check.


    Selectinactive-connection-timeout-seconds to check for the connection leak.

    Hope this helps.


    Debug JDBC and Debug JDBC Connection would give more information on the issue, make sure you increase the logging severity as well.


    Thanks,

  • Where we can find the attachment data type short text

    Hello

    file type attachments are store at fnd_lob.

    Where we can find the attachment data type short text in oracle apps.

    Concerning

    Hello

    Thanks, that's useful.

  • How can I recharge my favorites if I can't find the file "date.json" in my backup?

    My hard drive crashed and everything had to be recovered and reinstalled. I have a data folder Firefox but can not find the file "date.json" which is indicated to open the troubleshooting instructions. Y at - it another option?

    Hello

    If you have the latest version of Firefox, the file places.sqlite is what keeps your bookmarks. See the article for recovery of data from an old profile for more information.

  • Cannot find the release date of a film that I pre-ordered.

    I can't find the release date of a film that I pre-ordered.

    It is possible that the movie studio/owner of the rights has not yet established a real date, when we know that it should show on your account: pre-order music and movies on the iTunes Store - Apple Support

  • I just bought the SX710 HS. Cannot find the stamp date on the Menu. Is there a?

    I just bought the SX710 HS.  Cannot find the stamp date on the Menu.  Is there a?

    It seems strange, but no, I don't think that you can mark the date on the pictures. You can print the with a good date.

  • Error: Could not find the locale data files. Please reinstall when you try to open Facebook.

    Original title: locale data file errors... How can I fix it?

    can't the facebook home page and when I search the

    "Cannot find the locale data files. Please reinstall"pop box.

    Hi kjkin,

    1 did you change on your computer before this problem?

    2 are you able to access other Web sites correctly?

    3. what browser do you use?

    If you are using Internet Explorer, follow these methods & check if the problem persists:


    Method 1

    You can follow this link & check if the problem occurs:

    Can't access some Web sites in Internet Explorer


    Method 2

    You can also follow this link:

    How to delete the contents of the temporary Internet files folder?


    Reference:
    Internet Explorer does not start or stops responding

    Hope the helps of information.

  • Cannot find the locale data files. Please reinstall

    I had a problem with Google Chrome, so I uninstalled via the control panel. I then reinstalled and I have this problem. I always present in my programs in the watched folder, but when I select to demolished, he said ' wait until the current program has finished install or changing.» I have no other program install or change. If I try to open Google, anywhere Progams, taskbar, all programs or directly from the .exe LocalApps it gives me the "could not find the locale data files. Please reinstall.

    I found the answer to my question. It seems that you can build processes, I don't understand why. For example I had a problem with my windows Explorer crashing. I disabled all the startup process of msconfig.

    In my view, there must be something in there that closes a completed process.
    Then I had, unknown to me, when I posted this problem, six or seven cases Google chrome showing the the Task Manager process tab. When I quit all instances of Google, I was able to finish the removal process and re - install Google Chrome.
    I just checked right now and I have six Google shown 3 rundll32.exe and two taskeng.exe bodies. I've never seen no more than one instance of anything in this tab before today.
    Disabling all startup stuff does not solve my problem to explore some way so I'll allow them once again.
    Thank you for helping me and I hope that someone can get useful information from my travels.

  • Where is able to select the GPS data source?

    Hi, guys.

    I have a question about the GPS.

    I want to know the source of GPS data.

    I think that 2 types of sources of GPS data as internal device of GPS and Bluetooth GPS Receiver.

    If the user has a BB with chip GPS and Bluetooth GPS Receiver, where it is able to resolve?

    And I thought that this version of the OS 4.2 and 4.3 and 4.5 - 4.7 have different parameters to set the GPS data source option.

    Thank you guys.

    Hello

    The GPS data source is available for consultation in Options - Advanced search - GPS. If you do not have an entry Advanced Options (pre - 4.3 software) then you should see a GPS option on the first screen of Options.

    Kind regards

    Mike.

  • 2 applications on the same data source vs different data sources

    Hello

    What is the difference between having 2 planning applications on the same data source with the same user on the DB and with each on a separate user name and the new data source?

    I have no problem space or privileges on the two schemas of the DB. I just want to know what the best technically?

    Thank you

    You need a separate data by application source otherwise each application will overwrite the other that they will share the same relational tables, if you want the planning application to work properly then two apps = two data sources

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • The selected data source is read-only

    Someone knows how to solve this 'problem '.

    The selected data source is read-only. You cannot change the view configuration.

    Thanks in advance.

    My solution to this has been reset in the field of data and download information again. I know that it is not best practice but it works

  • Error: The Oracle data access Client is not installed

    Hi all
    I tried to configure the Performance Management architect 11.1.2 at that point, I got an error as "The Oracle data access Client is not installed".

    Kindly guide me how to overcome this problem.

    Thanks and greetings
    Alizée

    install ODP for .net

    Good reading: http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_install_start_here.pdf

    a little video:
    https://oracleaw.webex.com/ec0605ld/eventcenter/recording/recordAction.do;jsessionid=hL8FPMKDJzfGYMG1V21K0B9yCH32R07pvRmQmxDgT12ZK6vNKQhH!-901920245?theAction=poprecord&actname=%2Feventcenter%2Fframe%2Fg.do&apiname=lsr.php&renewticket=0&renewticket=0&actappname=ec0605ld&entappname=url0107ld&needFilter=false&&isurlact=true&entactname=%2FnbrRecordingURL.do&rID=63550522&rKey=ec6e556fa18cd368&recordID=63550522&rnd=5208921685&siteurl=oracleaw&SP=EC&AT=pb&format=short

  • Change the physical data Source in DAC

    I need to extract data from instance DEV2 of Siebel instead of DEV1.
    So I change the name of the database, the username and the password under the Data Sources tab physical under the SEBL_VERT_80 data source Configuration.
    I've generated parameters and rebuilt the execution plan. However when I run the execution plan certain tasks fail and I noticed in the log of session that the ETL jobs always seek to extract data from the DEV1 instead of DEV2.

    Can you get it someone please let me know what I might be missing? How can I make CCIP run ETLs on the DEV2 database?


    Thank you

    Let me know if that solves the problem or if the problem persists.

    -Austin

Maybe you are looking for