data source defined in application.cfm

Hi guys,.

My problem: need to define a data source in application.cfm so I don't: < cfset mydatasource = 'Hello' >

application.cfm is in the root folder. my components are in the folder cf_components and if I try to use:

< name cfquery = "getMe" datasource = "#mydatasource #" >

.....

< / cfquery >

So overall, I get an error that mydatasource variable is not defined.

any help much appreciated.

see you soon,

Simon

Other options:

1. turn your mydatasource variable within a scope which is visible from your components, extended query or request could be used for this.
Replace mydatasource by application.mydatasource or request.mydatasource
Scopes: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7fd5.html

2 specify a default data using the CFAPPLICATION datasource attribute source.  This requires CF9.
CFAPPLICATION: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 69.le html
CFQUERY: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f ae.html
Note that "ColdFusion 9: Datasource attribute is now optional.".

Tags: ColdFusion

Similar Questions

  • EPMHFM-66054: the system could not find the process of the application ADNIPHFM data source

    Hi all

    When you open the HFM application below the error is thrown.

    EPMHFM-66054: the system could not find the process of the application ADNIPHFM data source


    Another application is created as Test HFM, is the opening perfectly.

    Please help me on this issue, very urgent.

    Thanks in advance

    Concerning

    Satheesh.S

    Thanks to all of you question has been resolved by re set up again for the configuration database and upgrade from previous version.

    Concerning

    Satheesh.S

  • Planning for the Data Source

    Hello

    Can we use a data source to build different planning Applications. What is the use of data source... Which holds a wrt planning RDBMS.

    A data source defines the connection details, he holds connection information to a relational/db schema where is stored the planning app. It will also have the login information to essbase.
    You need a separate for each planning application data source as the relational/db schema must be separate for each application.
    The RDBMS holds all the metadata for the purposes of planning, such configuration, dimensions, structure, forms, lists of tasks etc.

    See you soon

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

  • The research of Web applications with fields of the Data Source that contains multiple values

    I have a Web application with a field that allows multiple values to be recorded similar to the list box. I need limit the allowed values for a large, over the list of the values currently stored in another Web application as a data source. I can not apply to the type of Data Source field that allows only single value selection. I also need to be able to use the search form Web App to search for items containing 1 OR more of the values in this field (a type of list control field search functionality). Here's what I tried to field types:

    • Text (String) or text (multi-line) field type - By saving a list of values separated by commas (outputs in the same way this list box) to an entry of text or textarea, the search only logic search exact string (including commas) and does not analyze individual values.
    • Type of list (checkbox) field - it allows me to search for multiple values using the logic of the GOLD, but the web application stores only the values that have been entered as an option in the field settings real web app. I tried to use a checkbox with minimal or empty options list, hoping that some values I sent more separate by a comma value chain would be still stored, but because the values come from my Web App data source and not stored with the field options list, they were not saved.

    Someone at - he found a way to do it?

    My other question is how can I use a multivalued field to similar as described above but return results containing the elements with ALL the values of this field (AND logic).

    Can someone enlighten me to the inner workings of the search BC logic web app?

    You don't need to use the predefined boxes or types of entries. Everything you can represent as a string (such as the values separated by commas in your example) can be saved in any field of webapp. The types of fields defined in the Web application are only used to translate internal representation (all channels) to the various user-friendly interpretations (checkboxes, radios, dates, links, etc.)

  • Application module runs does not after changing the jndi in the JDBC data source name

    I had an obligation to deploy ADF application dev, test, and production. Every environments to different databases.

    To reach the requirement above, we had suite
    (a) uncheck "Auto Generate and descriptors weblogic - jdbc.xml sync for the deployment" of the Application property.
    (b) defined a data source to wls console (console different wls for each env) to dev, test, and production with jndi, jdbc/dashboardDS.
    (c) on the module of the application, the connection type changed to "JDBC Data Source" and filled in "jdbc/dashboardDS" to the name of the data source.

    Now, we are able to deploy our ADF application for dev, test, and production environments.

    But, after doing some changes to the bc4j.xcfg file as in step c), I'm not able to run AM. AM is running in an error message.
    oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:437)
    Caused by: oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    
    ----- Level 1: Detail 0 -----
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    
       ----- Level 2: Detail 0 -----
       javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Any suggestions

    Thank you
    Ajay

    You are talknig Tester ADF BC? Yes, and then change the type of URL JDBC connection for tester to run.
    In you AM - configurations - Double click AMLocal and change

    Published by: in the line of fire on December 12, 2011 14:56

  • 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/

  • How to get the name of the application Module data source

    Hi all

    I need to get the name of source data or DB connection on which my Application module is plugged.

    I tried to get the value below

    System.out.println ("jdbc URL:" + getTransaction () .getConnectionMetadata () .getJdbcURL ());


    But it is null for the data source (in the case of the jdbc URL gives me value)


    Please help me.

    Thanks in advance...!

    P.S: Jdev v11.1.1.6

    Thanks to all those who want to help.

    ApplicationModule API (ApplicationModule (Oracle Fusion Middleware Java QAnywhere for Oracle ADF Model))

    I thought that this

    Hashtable hashtable is getSession () .getEnvironment ();.

    System.out.println ("JDBC data source value is:" + hashtable.get ("JDBCDataSource"));

  • Add a data source to cfm 11/Tomcat

    It is possible to add a to the tomcat container jdbc data source runs an instance of CF 11?  If so, is any documentation on how to do it?

    Thanks in advance...

    Ok. To answer your original question, yes it is possible to add a jdbc data source to the container tomcat running in ColdFusion. I will illustrate this by adding a PostgreSQL JDBC data source. Be aware that the following is experimental and, as far as I know, not documented elsewhere. Take notes that will help you, if necessary, to cancel the procedure and return the system to its original state.

    The steps are:

    1) download and install the latest version of PostgreSQL for your operating system database management system; make sure it is running. Write down the password you give to the server.

    (2) download the driver JDBC41 of PostgreSQL, version 9.3 - 1102. It is the version that corresponds to Java 1.7 and 1.8, the versions of Java Virtual Machine from ColdFusion 11. The download is a JAR file. Copy it to the Tomcat lib directory located at {CF_HOME_DIRECTORY} \runtime\lib\.

    3) you now add the driver details for the Tomcat configuration files, {CF_HOME_DIRECTORY}\runtime\conf\context.xml and {CF_HOME_DIRECTORY}\runtime\conf\web.xml. }} Make a backup of these files before continuing.

    Open the context.xml file in a text editor and add the following element just before the last end tag:

    Type = "javax. Sql.DataSource' driverClassName = "org.postgresql.Driver"

    URL = "" jdbc:postgresql://127.0.0.1:5432 / booktown ' "

    username = "cf_user" password = "cf_password" maxActive = "20" maxIdle = "10" maxWait = "-1" / >

    Open the web.xml file in the text editor and add the following element just before the last end tag:

    example of postgreSQL data source

    JDBC/postgres

    javax.sql.DataSource

    Container

    (4) the resource XML element points to the URL of the database of the booktown. I will now add this database and user for the PostgreSQL server.

    Download booktown.sql. Use it to install the database of the booktown on the command line by running a PostgreSQL command as

    psql-f /path/to/booktown.sql - U postgres template1

    If it works without a hitch, then the booktown database will be installed. The user is initially the default superuser "postgres". Use it to connect on the command line:

    psql - U postgres

    It will ask you to enter the password, the one you threw down earlier. The command line begins with the command prompt:

    Postgres = #.

    Now, create another user, cf_user, also on the command line, corresponding to the resource XML element:

    Postgres is # CREATE ROLE cf_user PASSWORD "cf_password" SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;.

    (5) you have now completed setup. Restart ColdFusion.

    To test, save the following code in a CFM file and run it.

    username = "cf_user";

    password = "cf_password";

    classObj = CreateObject ("java", "java.lang.Class");

    classObj.forName ("org.postgresql.Driver");

    driverManager = CreateObject ("java", "java.sql.DriverManager");

    connectionURL = "" jdbc:postgresql://127.0.0.1:5432 / booktown '; "

    Conn = driverManager.GetConnection (connectionURL, username, Password);

    myQuery = "" SELECT * FROM books ";"

    preparedStatement = conn.prepareStatement (myQuery);

    RS = PreparedStatement.executeQuery()) ();

    While (RS. Next {}

    WriteOutput (RS. "GetString ("title") &"
    ");

    }

    RS. Close();

    Conn.Close ();

    To cancel the procedure above, first stop ColdFusion. Then remove the jar from Tomcat lib direct and restore the context.xml and web.xml to their original state. You can also uninstall the PostgreSQL database management system.

  • How to define JDBC Data Sources in Oracle MapViewer for Oracle database 12 c Release 1 (12.1.0.1)

    How to define JDBC Data Sources in Oracle MapViewer for Oracle database Release 1 (12.1.0.1) 12 c?

    Here is my setup in the conf\mapViewerConfig.xml:


    < name map_data_source = "mvdemo12".

    jdbc_host = "127.0.0.1".

    jdbc_sid = "orcl12c1".

    jdbc_port = '1522 '.

    jdbc_user = "mvdemo".

    jdbc_password = "7OVl2rJ + hOYxG5T3vKJQb + hW4NPgy9EN.

    jdbc_mode = 'thin '.

    number_of_mappers = '3 '.

    allow_jdbc_theme_based_foi = 'true '.

    Editable = "true" / >

    <!--  ****  -->

    But it does not work.

    After use "sqlplus mvdemo / [email protected]:1522 / pdborcl", it connected to the Oracle 12 c database.

    Anyone know it?

    Thank you

    11.1.1.7.1 use the jdbc_sid syntax, i.e.

    as described in the README file, mypdb1.foo.com

    -Sources of native data (no container) MapViewer can now use the service name of database instead of SID. To provide a db service name, you will use the same attribute of jdbc_sid, but specify the name of the service with double slashes in front, as follows:

    jdbc_host = "foo.com"

    jdbc_sid="//mypdb1.foo.com".

    jdbc_port = '1522 '.

    ... ...

    />

    Use a container_ds to the 11.1.1.7.0.

    that is, instead of using

    jdbc_host = "mydbinstance".

    jdbc_sid = "pdborcl12c".

    jdbc_port = '1522 '.

    jdbc_user = "mytestuser".

    jdbc_password = "m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q ="

    jdbc_mode = 'thin '.

    number_of_mappers = "6".

    allow_jdbc_theme_based_foi = "false".

    Editable = "false".

    />

    use

    container_ds = "jdbc/db12c.

    number_of_mappers = "6".

    allow_jdbc_theme_based_foi = "false".

    Editable = "false".

    />

    In my case the Glassfish 3.1.2.2 JDBC connection pool definition has been

    Property

    URL jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name

    Uncheck the wrap JDBC objects in advanced Panel, that is, the page properties change JDBC connection advanced pool.

    Add a resource to that newly created JDBC pool

    Use in mapviewerconfig.xml as above

  • Planning application data source.

    Hello

    I have worked on planning for 2 years and never stumbled on this problem or questions. I created a single planning data source and installed a smaple application now, I want to create a new application of my own and try to use the same data source I used for the sample application, but its does not give me an option.

    Is it because you have to have a unique data source for each planning application? can I create several data source using the same schema details? I spent by the Administrator's guide, but has failed to find any information regarding my questions.

    Any help is greatly apericiated.

    Thank you

    You could have sought this forums of https://forums.oracle.com/message/4283797#4283797 (I remember a recent post too)

    Answer is no, you can not use the same source of data because the information is captured in the system of planning and this is the reason why it does not show you the source of data that is used.

    HYP_SYSAPPLICATION and HYPSYS_DATASOURCE contains the values (APP_ID for each application) and DATASOURCE_ID for each data source

    Concerning

    Celvin

    http://www.orahyplabs.com

  • Database and data source in the planning application

    Hi the Hyperion gods.
    In the process of creating, planning an application and create the data source, I'm a bit confused.
    Creating data source, it must give a name for the DATA SOURCE and a DESCRIPTION, and under the APPLICATION of DATA base, we need to specify things such as - platform DATABASE, SERVERNAME, PORT, database, USER and PASSWORD.
    I was wondering if someone could give me a good idea about the difference between the DATA source and DATABASE in this context.
    Since I am migrating the entire application and the structure of the cube from one server to another, do I need to appoint exactly the same (except for the name of the server)?
    Thanks for your comments.

    a data source is just a name for your connection information to the relational database and essbase who will use your planning application, I usually keep the data source name that is identical to the name of the application so do not become confused.
    Database platform is the type of database, for example, Oracle, SQL Server, the server name is the hostname for the relational database, data is the name of the relational database, I think the rest should be pretty obvious, but if you want more detailed information have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/app_dsc.html

    See you soon

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

  • Allow the application to start with one or multiple data sources, failing to connect?

    I have a Spring application that connects to several databases at the start, through JEE definitions referenced via JNDI datasource. Some of these databases sometimes go offline for various reasons. If the application is running at the time, it is not really dangerous, because of the way the application is designed. However, if I try to start the server if the database is offline, the application fails to deploy. Is it possible I can configure data sources not to block the deployment of the application if the database is offline or the application?

    Hello. You can ensure that your datasources WebLogic deployment, even if the DBMS (es)
    be down in time, specifying the initial capacity of each source of data/pool equal to zero.

  • OBIEE BP1 64-Bit 11.1.1.6.2 - define the MS Access Data Source

    Hello
    On our 11.1.1.6.2 facility OBIEE BP1 64-bit I would like to define a ms access db as a data source. We had that in OBIEE 10 G too, but this was a 32-bit - Source ODBC.

    It seems that OBIEE 11 G accepts only the 64-bit ODBC sources. But for 64-ODBC aren't there existing ms access drivers.

    Everyone facing the same problem and found a solution for this?

    Concerning

    Hello

    You AccessDatabaseEngine_x64.exe download and install then able to find, you can Excel data source in the 64-bit version. (we have also faced this issues a few years back and test with windows server 2008) works very well.

    You can download at the bottom of link
    http://www.Microsoft.com/en-US/Download/details.aspx?ID=13255

    Thank you
    Deva

  • A question for shared in 2 data source model of the application of the project in JDEV11

    Hi all
    My application has the following structure:

    ...
    | _Model_A
    | ...
    | | _Application-module-1
    | | _Application-module-2
    |
    | _ViewController_A
    | ...
    |
    | _Model_B
    | ...
    | | _Application-module-1
    | | _Application-module-3
    |
    | _ViewController_B
    ...

    As you can see, there are 2 projects of model and they share an Application Module: Application-Module-1

    I created 3 branches: APPDS_1, APPDS_2, APPDS_3. When you set up these 3 AMs in the model project, then select "JDBC URL" as the type of connection, both applications can work properly, say, source of data/JNDI are correctly at the launch of the JDEV 11 apps. Then, when select 'JDBC Data Source' as connection type, that is to say, use it as the source of data for Application-Module-1, both Model_A and Model_B: java: comp/env/jdbc/APPDS_1, app B throws an error:

    oracle.jbo.DMLException: Houston-27200: failure JNDI. Impossible to research data Source in the context...

    but app has still works.

    play with the value of data source in the Model_B for Application-Module-1, it is that set the JDBC data source "* jdbc / APPDS_1 *" make a app B! But, as far as I know, the correct value for 'JDBC Data Source' in 11g should be: java: comp/env/jdbc/APPDS_1.

    This really disturbs me. Why would this happen? Is it because that the Model_B use the same name that Model_A, IE. Application-Module-1?

    Just tried to rename it to Model_B so request-Module-1 becomes application-Module-4, still got the same error.


    Thank you
    Shawn

    Published by: shawn_abc on June 13, 2012 15:19

    # The best way is to use jdbc/APPDS_1

    The initial prefix part of the Datasource resource tree.
    Read here, http://www.coderanch.com/t/316003/EJB-JEE/java/lookup-java-comp

  • Failed to remove application and the data source of AppWizard

    Hello

    I use hyperion planning 11.1.2. I can't uninstall the application and data source in the list AppWizard (tablespace and a user of the oracle database are deleted). When I try to delete the data source, I can not because it is associated with the application. And when I try to uninstall the application, I get an error: unable to remove application information, see in the newspapers.

    Thanks for any help.

    Edited by: user13106562 the 18.10.2010 23:32

    >
    I can't uninstall the application and data source in the list AppWizard (tablespace and a user of the oracle database are deleted).

    You say you deleted the user and the tablespace before removing the application.
    If so you probably have to manually remove the application, an example is available here:- cannot remove the application planning 9.3

    See you soon

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

Maybe you are looking for