How to get the DB to Oracle Cloud connection?
Hello
I sent my application and the database tables and procedures on Java cloud and the Cloud database matching.
In the application on the cloud, the pages where the data comes directly from the VO are is filled correctly, but in some pages, I ran DB procedures while I get the DB connection of the using function code:
Public Sub getDBConnection()
{
Connection Conn = null;
try {}
InitialContext context = new world;
Data source dataSource = (DataSource) context.lookup ("< jndiName >");
Conn = dataSource.getConnection ();
} catch (NamingException e) {}
e.printStackTrace ();
} catch (SQLException e) {}
e.printStackTrace ();
}
}
But the connection is not putting in place and gives me a java.lang.NullPointerException.
Anyone know how to create a DB connection from java code on the oracle cloud?
See this thread for an example.
--
Jani Rautiainen
Relationship with the developers of Applications in fusion
https://blogs.Oracle.com/fadevrel/
Tags: Cloud Computing
Similar Questions
-
How to get the external hard drive to connect to VMWare Player?
Hi all
I currently have VMWare Player 3.1.4 and that you have a VM installed on an external SSD that works very well.
The guest operating system is XP and host operating system is OpenSuSE 11.4.
The problem is that I have another external hard drive that I want to connect to the virtual machine to store files and other (WD Scorpio Black 320 GB).
So what I tried was when I opend VMWare Player, I went to add a new SCSI device, found the hard drive, I wanted to use and created it. But when I go in-> "VM" > "Removable devices" > "generic SCSI (SCSI 0:1) ' > 'Connect'-> I get the below error message.
Device virtual scsi0:1: could not open the device host "/ dev/sdc": not sufficient permissions to access the file. Please make sure that the virtual device is configured to use a Linux generic SCSI device (/ dev/sg *), and that the physical device works normally on the host computer.
Cannot connect the device virtual scsi0:1.Does anyone know if I'm doing something wrong? What are the permissions are they talking about?
Thanks in advance,
Matt
Are back at the office and tested on a variety of Linux Ubuntu and was able to add a second drive HARD/dev/sdb as a physical and even disc was also able to boot from it even if it needs to be dismantled first and I had to start VMware Player using sudo, because I was using a standard account both add the disk and run the virtual machine with the added disk.
-
How to get the libraries of Adobe cloud for synchronization with adobe MUSE?
I followed the tutorial, "design a sensitive site without coding. I have two libraries on cloud creative adobe called "Responsive Web Design". In the tutorial, I should be able to access these libraries through MUSE, 'cc libraries', but they are not in the Adobe Muse "libraries"? Is there a way I can download the libraries on my computer that load them onto MUSE? What is the best approach?
Do not use the "Library" Panel, but the Panel "CC library".
If you don't see it, enable it in the "Windows" menu
-
How to get my version of Oracle EBS (Linux)
Hello
do you know how to get the version of Oracle EBS (Linux)?
Thank you!OK, now I'm confused...
cat/etc/redhat-release for the linux version.
httpd-version to the version of Apache.
For the version of the application, you can get that from the database. You can get help or request fnd_product_groups-> on the page.
[If you want the version of the framework: http://[host]. [domain]:[portnumber]/OA_HTML/OAInfo.jsp
Edited by: Bobcatalog 2 December 2008 13:00
-
Get the source of Weblogic database connection
Dear all,
Hopefully, you guys right. :-)
How to get the Source of Weblogic database connection string?
I have a Source of data created in my WebLogic.
Because I want to get my Java Bean connection string for Jasper report.
Please advice.Class.forName("oracle.jdbc.driver.OracleDriver"); con = DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:orcl", "username", "pass");
Best regards
Angelique
Published by: Alexis on January 23, 2012 18:37Hello
If you have configured the data source name in the Weblogic, then
below the code is obtained the connection based on the name of the data source.java.sql.Connection connection = null; try { javax.naming.Context initialContext = new javax.naming.InitialContext(); javax.sql.DataSource dataSource = (javax.sql.DataSource) initialContext.lookup("<
>"); connection = dataSource.getConnection(); } catch(Exception e){ e.printStackTrace(); } Kind regards
Hari -
How to get the name of a page class in the apex oracle
Hi all
Can you get it someone please let me know how we can get the class of a page or area name in the oracle apex? I would also like to know how to get the DOM object for particular item ID.
I appreciate any help on this.
Concerning
REDAIf a category exists already, then you can find them by inspect element in firefox/chrome browser and look like to class = «MyClass...» »
If there isn't one, then you can add via - point edit > attributes of the HTML Form element > class = "yourclass.
See this http://www.w3schools.com/tags/att_global_class.asp
-
How to get the value of PMT in oracle?
Hi all
I need to calculate the value of the PMT
There is the Excel PMT function == > PMT (rate, nPer, PV, (FV), (TYPE))
I have to calculate using pl/sql.
Can any body help how to get the value of PMT in PL/SQL?
Thanks for your help.
Kind regards
IwantoThere is no Oracle built-in function to calculate the payments, but the formula is easy to find. If you look at using Excel PV function, you should find the formula that excel uses to calculate. You can rearrange the calculation in terms of payment. If FV and TYPE are 0, then the calculation is
PV*rate*power((1+rate),nPer)/(power((1+rate),nPer) - 1)
You don't need really PL/SQL to do this.
Kind regards
Bob -
How to get the logical tab in the main area of 4.1.2 Data Modeler?
I just installed Oracle Developer Data Modeler: Version 4.1.2.895.
I was following section 2.1 development of the logic model
http://docs.Oracle.com/CD/E48219_01/doc.40/e48205/tut_data_modeling.htm#DMDUG36169
I used the example of library. I added the areas.
Then I tried to create the books.
The document says:
- In the main area (right) of the Data Modeler window, click the logical tab.
- Click the icon of the new entity.
But I don't see the logical TAB on the right side at all.
I see the Start Page. On the far right is the browser window. Basically, I see Messages - Log.
On the left side, I have the browser window.
Can someone tell me please how to get the logical TAB in the main area?
Thanks in advance.
Hello!
In the browser with the right button on the logic model and select view.
I hope this helps!
Heli
-
How to get the lov value(true/false) that is running by pressing the F3 function key
Hello
I mapped key F3 function for list of values (lov), pressing F3 on the element of text (with associated lov) poster lov, but here the lov is implicitly run, so I am unable to get the value of lov(true/false), how to get the true or false value from the lov.
I use Oracle forms 11 GR 2.
What exactly do you mean by "the true or false value of the lov? Want to know if the user chose something from the lov. If so, you can create a KEY-LISTVAL-trigger on your textitem with something like
IF SHOW_LOV('THE_NAME_OF_THE_LOV') THEN -- do something here END IF;
-
I have a photography teacher program Adobe and must add Adobe Illustrator for the BSc SAID curriculum I am on at the Academy of digital skills in Dublin, Ireland how I get the student discount to add Illustrator to mentoring rate?
I don't know if we can add a program, or you if have to go to a subscription 'all' education
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
How to get the 6th element of a C.V. value column
Hi all
I use Oracle Business Intelligence 11.1.1.7.131017.
I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...
My problem is how to get the value assigned to this position?
Here's the column values:
30719 (value I pretend-> min)
31357
32025
32595
33652
34616 (I also use this value-> max)
Any idea on how to get the value placed on tier 6?
Thanks for the help and have a good week.
Kind regards
Frederico.
I found a solution (poor, but it works)...
As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:
MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)
I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...
Many thanks to all,
Frederico.
-
How to get the second Monday of each month in a given date range?
In Oracle forms, how to get the second Monday of each month in a given date range?
I tried below using the query WITH the Clause, but it seems that WITH Clause does not work in Oracle forms. So is there another way to do this in Oracle forms?
WITH month_range AS
(
SELECT TO_DATE ('Dec 2013', 'Mon YYYY') AS first_month
, TO_DATE ('Mar 2014', 'Mon YYYY') AS last_month
OF the double
)
SELECT NEXT_DAY (6 + ADD_MONTHS (first_month
, LEVEL - 1
)
, 'MONDAY '.
) AS second_monday
OF month_range
CONNECTION OF LEVEL < = 1 + MONTHS_BETWEEN (last_month, first_month)
;
Thanks in advance.
Good fishing, when the first day of the month is Thursday... So I changed the query accordingly... Try the below
SELECT CASE WHEN TO_CHAR (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'DY') = 'game '.
THEN NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'THU')
Of OTHER NEXT_DAY (ADD_MONTHS (TRUNC(startdate,'MM'),(LEVEL-1)), 'Game') + 7
END AS second_day
FROM (SELECT SYSDATE startdate,
SYSDATE + 300 enddate
THE DOUBLE)
CONNECT BY LEVEL<=>=>
-
I'm new to CC. I discovered that I had to download first CS6 in@order to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial. How can I get the full thing. I am a Subscriber complete cc
I don't know what you've done, but here are the instructions to install the PProCS6 and the callback with a cloud account
Yet the instructions http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html if you have a subscription
- and the difference in the Cloud application manager 2015 https://forums.adobe.com/thread/1906752
Still will not run as a trial, it is enabled when you install and activate PProCS6
-
Hello, how to get the invoice notice to my subscription?
Hello, how to get the invoice notice to my subscription?
Hi Dominique,.
Please see this document for more information about printing an invoice from Adobe: print a received payment or invoice. Cloud Creative
Best,
Sara
-
How to get the 'DAY' based on the territory of current account held a number between
Hi all
Looks like I'm at the end of my intelligence here but how to get the 'DAY' based on the territory of current account with a number between 1 and 7? Oracle has functions to extract the day of the week, but I can't find the other way around.
I need a way to know that the number '3' on the database with NLS_TERRITORY = AMERICA means a 'Tuesday' or the number '2' on a database with NLS_TERRITORY = GERMANY means "Tuesday" as well.SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production SQL> alter session set nls_territory=AMERICA; Session altered. SQL> select to_char (sysdate, 'D') from dual; T - 3 SQL> alter session set nls_territory=GERMANY; Session altered. SQL> select to_char (sysdate, 'D') from dual; T - 2
Hope I am clear enough.
And wish you all a happy new year :)
Kind regards
SmailUse the format "IW" to get the date of Monday and the format "DAY" to get the "first day of the week. Then compare dates to see if they are identical.
ALTER SESSION SET NLS_TERRITORY = 'AMERICA'; SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday", TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week", MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON" FROM DUAL CONNECT BY LEVEL <= 7; Monday NLS First day of week 1 if day 1 = SUN, 0 if MON --------- --------------------- -------------------------- 31-DEC-12 30-DEC-12 1 24-DEC-12 30-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 24-DEC-12 23-DEC-12 1 alter session set nls_territory = 'FRANCE'; SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday", TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week", MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON" FROM DUAL CONNECT BY LEVEL <= 7; Monday NLS First day of week 1 if day 1 = SUN, 0 if MON -------- --------------------- -------------------------- 31/12/12 31/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0 24/12/12 24/12/12 0
Or it could be simpler:
ALTER SESSION SET NLS_TERRITORY = 'AMERICA'; WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7) SELECT INPUT_DAY, TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label" from data; INPUT_DAY Day label --------- ------------------------------------ 1 SUNDAY 2 MONDAY 3 TUESDAY 4 WEDNESDAY 5 THURSDAY 6 FRIDAY 7 SATURDAY alter session set nls_territory = 'FRANCE'; WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7) SELECT INPUT_DAY, TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label" from data; INPUT_DAY Day label --------- ------------------------------------ 1 MONDAY 2 TUESDAY 3 WEDNESDAY 4 THURSDAY 5 FRIDAY 6 SATURDAY 7 SUNDAY
Maybe you are looking for
-
H8-1270ea: HP mouse MG-0982 (part #603289
Anyone know where I can buy a replacement wireless mouse MG-0982 for my desktop HP h8-1270ea? Existing mouse and wireless keyboard, the two still work OK, but I would like a spare part, only favorite mouse but would buy keyboard if necessary... Conce
-
Why can't I see this DVD that I just got?
I have Windows Media installed and that you have played with success of videos in the past. I just got a DVD of an offer of treadmill and when I tried to see it, I received a message that I didn't have a DVD "decoder? I am running Windows XP with SP
-
Saturday, 19 March 2011 19:47:17 Microsoft purchase confirmation: MICROSOFT * XBOX LIVE Add to Contacts to: * address email is removed from the privacy * Frances dear ____, this mail is confirmation that you have purchased the following items: Date C
-
original title: reinstall the Prefetch folder Apparently I uninstalled the "Prefetch file" on my Vista desktop (recommended when running of TuneUp Utilities 2011). How & where should I go to get & install this file? Thank you.
-
I have a problem with one of my apps, and I can't find the email anywhere. It keeps taking me to a page where I can't find the coordinates.