Help to use JSON in 12.1 Oracle database
Hello
I would like to help to implement JSON in my 12.1 Oracle database:
Here is my current data model:
Table met_p6_point
CREATE THE TABLE EIGJSON. MET_P6_POINT
(
INTEGER ID,
DATE_VALID TIMESTAMP (6) NOT NULL,
FLOAT VALUE (126)
)
some data:
THE VALUE OF THE ID, DATE_VALID,
867154,01/01/2015 03:00 000000, 6
867155,01/01/2015 01:00, 000000, 4
2015/01-867155,01 02:00, 000000, 3
...
saves the County: 37 006 645
Table met_p6_ref
CREATE THE TABLE EIGJSON. MET_P6_REF
(
ID INTEGER NOT NULL,
TYPE_PREV INTEGER NOT NULL,
LOCATION INTEGER NOT NULL,
DATE_PUBLI TIMESTAMP (6) NOT NULL
)
some data
ID, TYPE_PREV, LOCALIZATION, DATE_PUBLI
615,1,497,26/06/2013 18:00, 000000
616,1,510,26/06/2013 18:00, 000000
617,1,579,26/06/2013 18:00, 000000
618,1,588,26/06/2013 18:00, 000000
...
saves the County: 1217964
Table met_panier32
CREATE THE TABLE EIGJSON. MET_PANIER32
(
ID INTEGER NOT NULL,
WMO INTEGER,
NAME VARCHAR2 (45 BYTES) DEFAULT NULL,
LAT FLOAT (126).
LON FLOAT (126).
WEIGHT FLOAT (126).
CP INTEGER NOT NULL,
INSEE INTEGER NOT NULL,
VARCHAR2 (100 BYTE) DEPT NOT NULL,.
VARCHAR2 (100 BYTE) REGION NOT NULL,.
X_DEPT FLOAT (126).
Y_DEPT FLOAT (126)
)
some data
ID, WMO, NAME, LAT, LON, WEIGHT, CP, INSEE, DEPARTMENT, REGION, X_DEPT, Y_DEPT
1,2, BOULOGNE ON SEA, 50, 727, 1, 6, 0, 01, 62200, 62160, 62, 31, 85, 115
2.5, ABBEVILLE, 50, 111, 1, 838, 0, 01, 80100, 80001, 80, 22, 110, 70
3.15, LILLE, 50, 635, 3, 064, 0, 03, 59000, 59350, 59, 31, 205, 120
4.27, CAEN, 49, 18, - 0, 357, 0, 025, 14000, 14118, 14, 25, 195, 110
5 110, BREST, 48, 391-4, 485, 0, 042, 29200, 29019, 29, 53, 120, 100
...
record count: 32
Table cal_hor
CREATE THE TABLE EIGJSON. CAL_HOR
(
HL24 TIMESTAMP (6) NOT NULL,
TIMESTAMP (6) UTC NOT NULL,.
WHOLE TIME
)
HL24, UTC, HOUR
26/01/2010-06:00, 000000, 26/01/2010 05:00, 000000, 6
26/01/2010-07:00, 000000, 26/01/2010-06:00, 000000, 7
26/01/2010-08:00, 000000, 26/01/2010-07:00, 000000, 8
26/01/2010-09:00, 000000, 26/01/2010-08:00, 000000, 9
...
saves the County: 96433
I want to create a new table:
CREATE THE TABLE EIGJSON. MET_P6_REF_POINTB
(
ID INTEGER NOT NULL,
TYPE_PREV INTEGER NOT NULL,
LOCATION INTEGER NOT NULL,
DATE_PUBLI TIMESTAMP (6) NOT NULL,
CLOB DATA
)
How to insert data into the new table?
I am trying to find an INSERT SQL command like this:
INSERT INTO met_p6_ref_pointb
SELECT 'ID', location, type_prev, date_publi,
row_to_json (met_p6_point): jsonb
OF met_p6_ref
Join met_p6_point using ('ID');
But there is no row_to_json in oracle 12.1
Suspicion and advice would be appreciated.
Thanks adavance.
I have the solution. This is the query.
I think he can help other people who want to use JSON data:
INSERT INTO met_p6_ref_pointb
SELECT 'ID', type_prev, localization, date_publi, "{'ID':}" | ID | ","DATE_VALID":'''|| LTRIM (DATE_VALID) | " ', 'VALUE': ' | {VALUE |'} '
OF met_p6_ref
Join met_p6_point using ('ID');
It works for me.
Tags: Database
Similar Questions
-
Using HTP and HTF in Oracle database Express edition
Hi all
I would like to know if it is possible to use the HTP package in Oracle database express edition.
Thanks for your replies.
Kind regards.
ccaa52af-D591-4a07-95bc-4a021a71b4a2 wrote:
Hi all
I would like to know if it is possible to use the HTP package in Oracle database express edition.
Thanks for your replies.
Kind regards.
Yes.
Oracle XE comes with Apex as an administrator and developer web interfaces. The apex is web enabled the PL/SQL code. And such a code heavily used package HTP.
-
Please help me! Unable to connect to Oracle Database 10 g 10.2.0.3 6i
I'm new to databases.
I am trying to connect to Oracle 6i to my 10 g 10.2.0.3 Express Edition database.
Error code: ORA-12154: TNS could not resolve service name.
I'll start > > Oracle 6i > > Form Builder. Click file > > Connect > > enter username and password. I enter the name of the database as orcl. The I get the error message.
I'm using Windows Vista 32-bit. Oracle 10g 10.2.0.3.
What can I do while I am able to connect and bulid the form.
Thanking you.Error code: ORA-12154: TNS could not resolve service name.
$ oerr ora 12154 12154, 00000, "TNS:could not resolve the connect identifier specified" // *Cause: A connection to a database or other service was requested using // a connect identifier, and the connect identifier specified could not // be resolved into a connect descriptor using one of the naming methods // configured. For example, if the type of connect identifier used was a // net service name then the net service name could not be found in a // naming method repository, or the repository could not be // located or reached. // *Action: // - If you are using local naming (TNSNAMES.ORA file): // - Make sure that "TNSNAMES" is listed as one of the values of the // NAMES.DIRECTORY_PATH parameter in the Oracle Net profile // (SQLNET.ORA) // - Verify that a TNSNAMES.ORA file exists and is in the proper // directory and is accessible. // - Check that the net service name used as the connect identifier // exists in the TNSNAMES.ORA file. // - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA // file. Look for unmatched parentheses or stray characters. Errors // in a TNSNAMES.ORA file may make it unusable. // - If you are using directory naming: // - Verify that "LDAP" is listed as one of the values of the // NAMES.DIRETORY_PATH parameter in the Oracle Net profile // (SQLNET.ORA). // - Verify that the LDAP directory server is up and that it is // accessible. // - Verify that the net service name or database name used as the // connect identifier is configured in the directory. // - Verify that the default context being used is correct by // specifying a fully qualified net service name or a full LDAP DN // as the connect identifier // - If you are using easy connect naming: // - Verify that "EZCONNECT" is listed as one of the values of the // NAMES.DIRETORY_PATH parameter in the Oracle Net profile // (SQLNET.ORA). // - Make sure the host, port and service name specified // are correct. // - Try enclosing the connect identifier in quote marks. // // See the Oracle Net Services Administrators Guide or the Oracle // operating system specific guide for more information on naming. $
Discover TNSNAMES. ORA file in ORACLE_HOME forms.
-
Need help in the migration of windows 2003 server Oracle database server 2012
Hello
My environment is oracle database 9i in windows server 2003, we want to move to Windows 2012 since the end of support for windows 2003.
Please give me a plan, what no need to make the first database upgrade or upgrade of windows, what are the things will have to be considered at the level of Oracle database?
Any help would be appreciated.
Thank you
Lherault
Hello
Given the version of your database is 9.2.0.8 and you want to upgrade to 11.2.0.4 and 9i database is running with log mode archive
I have plan.
(1) your database 9i working with the log mode archive Server 2003
(2) you can take backup of Database 9i with RMAN
(3) you can restore the backup to the base in 2008 (by using 11.2.0.4 software)
(4) when the recovery is complete, you can open the database with resetlogs option upgrade.
change the upgrade of open database resetlog.
(5) once the database is open, you can run 'Upgrade PROCESS'
(6) it should complete your upgrade in 2008
If you think, restoration and recovery will take time, so you can install physics Eve with 11.2.0.4 version in 2008 for the Database 9i.
During failover, you can recreate the controlfile and open the database ' change the upgrade of database open resetlog. "
you will need to check the compatibility with the help from under documents
Reference list Oracle database upgrade (Doc ID 730365.1)
Note 551141.1 : Server Upgrade/Downgrade Compatibility matrix data base
-
Why use Oracle Grid in the oracle database
Hi experts,
In fact in my workplace, we use normal database (use not the grid). I want to know why we use the grid in the oracle database. all that the advantage of it.
Reg,
Thomas
You might have a grid of database servers (access to the shared storage) or application servers.
You can use the Grid control to monitor and manage multiple database / application servers.
10g and 11g and 12 c facilities grid Infrastructure is installed to facilitate the DSO (is not part of the 10g GI) but a part of the 11 g and 12 c GI and Clustering.
Then, depending on the context "grid" can refer to another product.
Hemant K Collette
-
load data to the oracle database...
Dear Sir
I use to load data to oracle database .is there other methods to load bulk data to the database sql badr...
Discover the outer table in Oracle Utilities
-
ShadowProtect backup Oracle databases
Hi all
I would like to hear from someone if you use ShadowProtect to backup your Oracle databases.
What are your experiences and the advantages and disadvantages in using ShadowProtect like the one and only tools to backup and restore for Oracle databases?
Can the potential of ShadowProtect replaces it commonly use Oracle backup/restore tools?
The reason why I bring this up is because my boss has the idea that ShadowProtect is THE best backup and restore tools. Personally I don't think, because there may be cases where we only need to recover the database and not the whole OS. So need to hear more from you guys.
Thank you.
Published by: moslee on March 22, 2013 02:24moslee wrote:
Hi allI would like to hear from someone if you use ShadowProtect to backup your Oracle databases.
What are your experiences and the advantages and disadvantages in using ShadowProtect like the one and only tools to backup and restore for Oracle databases?
Can the potential of ShadowProtect replaces it commonly use Oracle backup/restore tools?The reason why I bring this up is because my boss has the idea that ShadowProtect is THE best backup and restore tools. Personally I don't think, because there may be cases where we only need to recover the database and not the whole OS. So need to hear more from you guys.
Thank you.
Published by: moslee on March 22, 2013 02:24
Given the complexity of the backup and recovery of an Oracle database, I wouldn't trust anything, but the solution of the Oracle, rman. BTW, you already paid for rman. BTW, I've been known to quietly to apply my own backups rman, then let the solution of "business" save my rman backups. When feces enter the ventilation system, your final responsibility go/no-go is to recover this database. And 'they' (management, storage management team, anyone) will never accept that their backup solution has been insufficient or fatally defective.
Published by: EdStevens on March 22, 2013 06:18
-
Cannot use DBI item PER_ASG_GRADE_NAME in Oracle formula. Can anyone help?
I see no reason why it should fail if you used it exactly as this i.e (reference DBI without single quotes) and element runs at the level of the assignment
SET_INPUT ("hr_id2", ASG_HR_ASG_ID)
Could you see the value of ASG_HR_ASG_ID in your formula and check if it returns any value or not. This will return the value only when your element (on which you created the rule for the calculation of the status to run this formula) is at the level of the assignment. If you marked it at the level of the expression, it does not return any value and may give the error you get.
Also could you please paste your most recent formula code which we can help to find if anything is missing.
-
ATTENTION: nsIJSON.decode is obsolete. Use JSON.parse instead.
ATTENTION: nsIJSON.decode is obsolete. Use JSON.parse instead. Symptom. WHN I open a new tab, the creen goes on with my screens recorded, but none of them will load.
Try Firefox Safe mode to see how it works there.
A way of solving problems, which disables most of the modules.
(If you use it, switch to the default theme).- You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
- Or use the Help menu option, click restart with the disabled... modules while Firefox is running.
Do not choose anything at the moment, just use 'continue in safe mode.
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.
If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.
http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themesWhen find you what is causing that, please let us know. It might help others who have this problem.
-
APEX 5.0
Cloud Computing service for the Oracle database schema
I'm in the middle of do a proof of concept. Basically, I need an application with security of the stored data, UI, user, data loading, and able to post data via an external web service said. It seems that with the database schema Oracle cloud service, it is not possible to use web service references that are not in the field.
If I try to use a service via http reference, I get:
ORA-20987: APEX - the requested URL was forbidden. Contact your administrator. -Contact your administrator of the application.
If I try to use the same reference service via https, I get:
ORA-29273: HTTP request failed
ORA-06512: at & quot; SYS. UTL_HTTP & quot; line 1130
ORA-29259: end-of-input reached
I read somewhere that cloud services only https can be used. Is this true?
And then I read somewhere to use the protocol https, the portfolio must be configured to store certificates, etc. However, I read somewhere else that the portfolio cannot be configured because there is no access to the instance database with the Oracle Cloud Computing database schema service. Is this true?
If both are true, how can I make a call to post data to an external web service? Or do I need to use a different Cloud Computing service? Or do I need my own instance of Oracle DB?
Any help would be great. Thank you!
It turns out there was a problem with the remote rest service. After successfully calling a rest service that was created using SQL Workshop, I tried different remote rest services and they all work. Sorry for the confusion. I thought it was very strange that the schema of database service wouldn't be able to do it easily.
-
Use JSON with REST API vCO 5.1
I'm developing a simple REST client to run a workflow in vCO. I am using perl and the module REST::Client, which is pretty simple. I can retrieve the items in the inventory and definition for my target workflow, but when I try to POST a run, I get an error report by stating:
The request sent by the client is syntactically incorrect.
I use JSON (as is the default output of the vCO if no Content-Type is specified, and my personal preference), and the JSON format documentation is pretty sparse compared to the XML documentation. The documents describe the context of execution as follows:
{ "parameters" : [ { "name" : "...", "type" : "...", "description" : "...", "scope" : "local", "value" : { } }, ... ] }
My workflow accepts two string for the input parameters and returns a string as output parameter. I read that the scope and description fields are optional, and I am omitting the two. Clearly, however, Miss something needed on the structure of the execution context. Can anyone help to shed light on this?
Complete debugging:
Accept: application/jsonAccept-Encoding: gzip, x-gzip, deflate, bzip2-xAuthorization: *.User-Agent: REST::Client/249Content-Length: 137Content-Type: application/json{"parameters":[{"value":"10.0.0.0/24","name":"network","type":"string"},{"value":"test-hostname.dom","name":"hostname","type":"string"}]}HTTP/1.1 400 Bad RequestConnection: closeDate: Wednesday, December 5, 2012 19:01:11 GMTServer: vCO ServerContent-Length: 965Content-Type: text/html; charset = utf-8Client-Date: Wednesday, December 5, 2012 19:06:21 GMTClient-Peer: *: 8281Customer-response-Num: 1Client-SSL-Cert-Issuer: /C=US/O=VMware/OU=VMware/CN=localhost.localdomClient-SSL-Cert-subject: /C=US/O=VMware/OU=VMware/CN=localhost.localdomClient-SSL-Cipher: DHE-RSA-AES256-SHAClient SSL-Socket-class: IO::SocketClient alert-SSL: certificate of the peer unauditedTitle: JBossWeb/2.0.1.GA - error report< html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 22px ;}} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 16px ;}} H3 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 14px ;}} BODY {do-family: Tahoma, Arial, without serif; color: black; background-color: white ;}} B {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76 ;}} P {do-family: Tahoma, Arial, without serif;: white background; color: black; do-size: 12px ;}} A {color: black ;}} B.SID {color: black ;}} HR {color: # 525 76 ;} - > < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1" = "noshade" noshade > < p-type > < b > < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > < p > < b > description < /b > < u > the request sent by} the client was syntactically incorrect (). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < / html >
There was a problem with the value of the format JSON deserialization, it is fixed and will be available in version 5.1 of U1.
-
Need help to provide a page for the Oracle PeopleSoft HCM on internet
Hello
I need help to provide that a page of Oracle PeopleSoft HCM on internet for vacancies may be available for recruitment. How can I provide a Peoplesoft Web page?
TKS
Bruno will read
Of Peoplebooks
Access to external Sites
External candidates, by definition, do not have the nicknames PeopleSoft. To allow external users access to a site, you put a link to the site on a location such as your public Web site. The site definition includes a field to set the URL of this external link.
Deployed in this mode, the instance of PeopleSoft to be accessed by external users must have the appropriate security settings to allow users to bypass the access code. In other words, a user who clicks on the link is not presented with a PeopleSoft signon pages but is instead signed the using a user ID generic comments so that the user can be taken directly to the candidate Gateway.
If an external candidate allows a more inactive candidate gateway session that the timeout you set, the default system behavior is to provide a link to the login page of PeopleSoft with the visible invited user ID. According to your logic of password, the guest user ID might be locked if the applicant tries in vain to connect. For more security and ease of use, replace the code page to a page that displays an appropriate message. For example, to display a message that the session has expired and provide a link back to the bridge of the candidate.
-
Business using the NoSQL in Oracle database application development
Hello
I followed the link given by Lai Re, to develop the application of Kvitter using the NoSQL database below. But there is no link to the code example in the blog below.
Developing applications using the NoSQL of Oracle database
Please help me with the link for the Code of the Kvitter Application.
Thank you.
Concerning
Jean-Luc Reynaud
Hi, Aymeric
Here is the direct link to the source code for the sample program above. The link is also displayed under the programs section of demo/sample.
HTH
Anuj -
Hello together,
I'm trying to use JSON in edge animate.
My goal is to put all the texts and images of edge animate in a JSON file.
The text file looks like:
var = JSONObject
{
Text of the page
"text':"Hello. "
'image': {}
'src': ' images/test.png '.
}
};
There is no problem with the reading of the text of the file:
sym.setVariable ("text", JSONObject.text);
SYM.$("text").html (sym.getVariable ("Text"));
But it doesn´t work with the loading of the image. I tried like
sym.setVariable ("image", JSONObject.image.src);
SYM. $("test_image") .css ({' background', sym.getVariable ('image')});
but no luck. Can someone help me?
Hello
(1) your error: you do not use the property CSS background as required.
SYM. $("test_image") .css ("background-image", "url (" + sym.getVariable ('image') + ")");
- See: Background CSS
(2) another solution: previous post.
-
Unable to connect to remote oracle database! Help, please!
Hi all-
I am a new user Oracle and you are allowed to access a remote Oracle database, however I have problems with the installation/configuration program! I downloaded the driver Oracle and the Instant Client (11.2.0.2.0) because I need to use Microsoft Access for the data access (the Access database is already configured to the correct Oracle database). I'm under the impression that, to do this, I need to be able to use the ODBC Administrator to get all set up. Note: Im working on Windows XP.
I have questions:
-I don't seem to have installed Netca (which seems to be the recommended method to configure a connection). I have manually adjusted the TNSNAMES file. ORA file so it matches the database, but I'm not sure what would be my next step.
-When I open SqlPlus it wants a username and password, and I tried the default settings and got an error each time. I must first use SqlPlus, or establish a connection via ODBC first?
-Also: ODBC requires a TNS Service name, and I'm not sure, where this is established; something that would give the database manager?
I really just do not know how to configure this remote connection! I continue to run with obstacles and really want a reference "step by step" on the way to do it, if there is such a thing. Any help or additional reference material would be appreciated! I ran by the content of the forum, but have not been able to decode the jargon! Thank you very much in advance.
MarilynMsMonroe wrote:
Hi Ed-I use the Oracle's ODBC driver. I think there may be a problem with the TNSnames file because I tried to add this file as a"Data Source", and he also said that a connection could not be established. What do you mean by the MS implemented? A configuration of Data Source?
By MS implemented, I was referring to the MS ODBC for Oracle driver, against the Oracle ODBC for Oracle driver.
The "source of data file' has nothing to do with the tnsnames file. The ODBC Manager retains its DSN definitions in one of three places. "User DSN" is stored in the HKEY_LOCAL_USER registry, the "System DSN" definitions are stored in the HKEY_LOCAL_MACHINE registry and 'FILE DSN"definitions is stored in a file... I don't remember exactly where or what it's name is as I have (when he is forced to deal with odbc) just keep things simple and use "system dsn". But these aren't all the definitions of ODBC, Oracle tnsnames file.
The link between the ODBC DSN and the tnsnames.ora presents itself as a property of the ODBC definition. Suppose you have this for a tnsnames.ora entry:
houston = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = vmlnx01)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) )
Then
-When you set up your odbc dsn, if you use the MS for Oracle driver, you must specify 'houston' as the 'server '.
-When you set up your odbc dsn, if you use the Oracle odbc driver, you must specify "houston" as "the TNS Service name".>
Im going to try to post a modified version of the content of my TNSnames.ora file (for some reason any the "content is not allowed ' by the forum), but I would like to get some comments on whether the structure of the content may be the problem.
Maybe you are looking for
-
Contact iTunes when you buy is not going through
I tried to buy something with an app. I use, but the transaction did not go through it told me to contact Apple/iTunes. So what I do now. I want just the purchase to go through and I would like to continue to play my app.
-
Satellite 5200-device display 801:Quick switch (Fn + F5)
I have a problem regarding the fast display device switching "pressing the (Fn) with (F5)" nothing happen as usual... does everything body knows how to fix it! Thanks in advance. my laptop is 5200-801 with Nvidia 460Go with 46 MB.
-
I tried to remove pictures of iCloud to make more room and they had also deleted from my Macbook Pro. How can I remove iCloud without deleting my Mac?
-
How to enlarge the maps on solitare?
How can I change the size of the cards on solitare?
-
HP Photosmart Premium C410: C410 printer
Printer will copy and print but not scan. Get this message from the solution Center: HP solutions Center can not run because your device installation is not complete. Please plug in USB or re-run the Setup program from the installation to a network i