Questions tagged [oracle]

Oracle Database, developed by Oracle Corporation, is a versatile Multi-Model Database Management System. Please refrain from using this tag for other Oracle-owned products like Java and MySQL.

Tips for saving styled text in an Oracle database and retrieving it as JSONContentType: Application/JSON

Is there a built-in functionality in Oracle that allows for storing rich text? I have added HTML tags to formatted text and want to know the correct way of saving it in the database. Upon fetching the stored text in a resultset, I am converting it to JSON ...

How can one display blog data (stored as a PDF) from a database alongside other different results (stored as

I have successfully displayed a PDF file from my database as a blob using the header("Content-type:application/pdf") method. Now, I am looking to also display some additional string results along with this PDF file. Is it feasible to achieve this while d ...

Extracting data from JSON column using a variable element name

I have a database table with JSON data that I need to decode and store in a relational database. The table is for an Oracle DB 19.0 and it looks like this: CREATE TABLE J_PAGE ( PK_PAGE_ID NUMBER ( 10 , 0 ) , FK_RESP_ID NUMBER ( 10 ...

Refreshing the parent page in Oracle Apex upon closing the child window.When the child window

I have created an interactive report with a form where the interactive report is on page 2 as the parent page and the form page is on page 3 as the child page. In the parent page, I have written JavaScript to open a modal window (form page - page 3) using ...

Tips for converting a string to RAW data type in Oracle using PHP

Currently struggling with sending lengthy strings to Oracle stored procedure RAW variable, encountering the following error: oci_execute(): ORA-06502: PL/SQL: numeric or value error In need of assistance on converting a String to Raw datatype. ...

Is there a way to monitor the number of rows being inserted into a table while the insertion process is still in progress?

I am facing a challenge with a dataframe containing 4 million rows and 53 columns. My goal is to write this dataframe to an oracle table using Python. Below is a snippet of the code I have been working on: import pandas as pd import cx_Oracle conn = (---- ...

Is it possible to execute multiple database queries simultaneously within a single PHP session?

I have encountered some challenges while handling multiple database calls, especially when dealing with large datasets. It seems that PHP restricts the execution of only one database call at a time per session. This limitation is typically not problematic ...

Issue encountered when attempting to retrieve JSON data from a table containing multiple rows

Setting: My current setup involves using Oracle 19c database with PLSQL JSON functions like JSON_TABLE. The Task at Hand: My goal is to extract JSON data from a CLOB column within a table that contains multiple rows. Dilemma: I have encountered an issue ...

Using PHP to insert multiple rows with a variable in an Oracle database: A step-by-step guide

Can someone assist me with inserting multiple rows using a variable in an Oracle database through PHP? Here is my query: $qry6= "INSERT INTO sample(name , id , qty , PRICE , tax) VALUES ".$result_product1.";"; where $result_product1 = (shirt,1,20,300,1 ...

What is the proper way to gracefully stop a koajs server?

Is there a way to gracefully stop koajs like I've seen for expressjs? I also need to disconnect database connections during the process. Specifically, I have a mongoose database connection and 2 oracle db connections (https://github.com/oracle/node- ...

Utilizing the power of Node.js with Oracle seamlessly, without the need for the Oracle Instant

Currently, I am working on testing the connectivity to our Oracle databases. Recently, I came across node-oracledb, a tool released by Oracle that aims to simplify this process. However, one major hurdle is the requirement of having the Oracle Instant Clie ...

Tips for extracting Key Value as a result set from an Oracle JSON column using JSON_TABLE

After countless searches on Google, I have yet to find a straightforward solution for my specific scenario. Within an Oracle 12C database, I have a json column (technically a varchar with a json constraint) where I store a map representation like the follo ...

Guide to designing a progress bar using numerical data stored in a database

I am currently working on a project to create a dynamic progress bar based on numeric values stored in a database. The database has two fields, 'NEXT_STEP' and 'MAX_STEPS'. When the value of NEXT_STEP reaches MAX_STEPS + 1, it indicates ...

Encountering a problem with Oracle 12c when attempting to retrieve a JSON value exceeding 11000 characters using JSON_VALUE

While executing the code below on Oracle 12c : DECLARE l_json clob; l_var varchar2(90); l_query clob; mypath clob; l_path_value varchar2(100); BEGIN SELECT json_column into l_json from my_table; SELECT path_colum ...

Printing Apex Oracle reports using Internet Explorer

I am facing a challenge with printing my page that contains two interactive reports. To enable printing, I have utilized a JavaScript function that triggers window.print(). I have incorporated CSS to adjust the layout of my tables when printed. @media pr ...

What causes the "table or view does not exist" error with cx_Oracle but not when using SQL Developer?

I'm in the process of creating a Python script to update a table in Oracle. I've already granted all necessary permissions to the role, and have assigned the role to the schema that I am using for CRUD operations. Interestingly, when I execute database tr ...

Connecting to an Oracle database using Alfresco's Javascript API may seem daunting at first, but

Currently, I am working on a project that involves using Alfresco. One of the new requirements for this project is to retrieve a sequence number from our Oracle database and populate a custom property within an Alfresco space. var conObj = new ActiveXObje ...

Utilizing Node promises to retrieve multiple result sets from Oracle databases

I've created a Node/Express.js application that connects to Oracle using the node-oracledb module. My challenge lies in returning multiple queries to my view. Most examples I found within the Node-Oracle project are geared towards single queries only ...

Activating Dynamic Functionality through JavaScript Input

I am currently working on a form in Apex 4.1 where I have an address lookup field that utilizes JavaScript to connect to an address database and populate separate fields with the address details (address1, address2, town, postcode). On the same page, I ha ...

What causes the discrepancy in results between the quoted printable encoding operation in JavaScript and Oracle?

Programming Languages: // JavaScript code snippet //https://www.npmjs.com/package/utf8 //https://github.com/mathiasbynens/quoted-printable par_comment_qoted = quotedPrintable.encode(utf8.encode('test ąčęė')); console.log('par_comment_qot ...

Preventing Data Duplicates When Inserting in ASP.NET MVC

I have noticed that when sending an insert query to my Oracle database through MVC ACTION, the insert method seems to be called twice and records the same data twice... Furthermore, when using the same structure to run a select query, I am getting the sam ...

Import a large JSON file into either a MySQL or Oracle database

My team at work is responsible for supplying files to other services. These files typically range in size from 5MB to 500MB. We are considering using JSON instead of XML, but I am concerned about how our customers will be able to upload these files into th ...

Attempting to establish a connection with Oracle database using Electron on a Windows 7 operating system

Currently, I am in the process of establishing a connection to an Oracle database within my Electron application. Can anyone suggest potential solutions or alternative approaches that could be useful in this scenario? ...

Tips for effectively timing out a Node.js Oracle DB connection that fails to respond

I am currently utilizing Npm Oracle in my Node.js application. I am facing an issue where my compiler hangs while trying to connect to the Oracle database, causing a thread to get stuck. I need to implement a timeout mechanism as my client cannot wait for ...

What is the best approach for executing bulk inserts using the Nodejs OracleDB driver?

I am working with a NodeJS stream that generates an array of objects, the size of which varies dynamically based on the input. The maximum size of the array is 256. I am looking for a way to avoid inserting each record into Oracle DB individually. Is the ...

Guide for adding Oracle Client library to cPanel

I have created a Python application via cPanel and configured the database to connect with Oracle DB on AWS. The application runs perfectly on localhost, but when hosted, I encountered an error stating that the Oracle Client library is missing: Oracle Cli ...

Unable to fetch a JPG image using PHP

I am currently facing an issue with retrieving a jpg file from an oracle db and trying to display it using the echo command. The jpg file is stored as a blob inside the database and shows up correctly when accessed directly from the database. Below is the ...

Oracle database not retaining Arabic characters

Our API is sending us Json payload, for example: { "customerName": "علي الدويش", "customerCode": "999999", "shipAddress1": "البلاغة", } To store this data, we are utilizing Sprin ...

Disabling a button based on the result of a database query

Is there a way to dynamically enable or disable a button based on the result of a database query in JavaScript? I have managed to display an error message (with id="error") depending on the result, but toggling the button (with id="generate") doesn't seem ...

Uploading an image to an Oracle database with the help of PHP and AJAX

Looking for a way to insert an image into an Oracle database using OCI with PHP, Ajax, and jQuery. I've searched online but couldn't find any examples. If anyone has a solution, please share. Thanks in advance. <label for= ...

Invalid file format for product images in Magento version 1.9.0.1

Every time I try to upload an image in the product option, Magento 1.9.0.1 gives me an error saying "Disallowed file format." ...

Testing the integration between Oracle and Selenium

For integration testing, I am looking to test some connections between a web application and its Oracle DB data store. There is a specific table where I want to verify the stored values. I am contemplating the most effective method to accomplish this task ...

When I use ORDER BY in my query, I encounter the ORA-00933 error, indicating that the SQL command

Hey there, I have a question regarding resultSet processing in my query. The query runs smoothly until I add 'ORDER BY name des', resulting in an ORA-00933: SQL command not properly ended error. This is the current query I am using: router.post('/report/ ...

When working with Oracle CLOB stream in Node.js, there is a known issue where writing utf8 strings may result

Using node.js, oracle, and the oracledb module, I have a simple PL/SQL procedure as shown below: procedure mock_lobs( P_CLOB IN OUT CLOB, P_BLOB IN OUT BLOB ) AS BEGIN NULL; END mock_lobs; This procedure return ...

PerformMultiple mistakenly inserts incorrect data

I am currently using oracledb (4.0.1) in conjunction with node (v10.14.2). The JSON list shown below is what I have: [ { DIFFID: 8, DIFFDATE: 2019-11-01T14:04:41.831Z, REGIONNAMEA: 'TURKEY', VENDORA: 'XXX', SOURCECOUNT: 797, DIFFCOUNT: ...

"Transforming a query into a JSON array - a step-by-step

My query generates the following output: { key:1,label:"R. Bulan"} { key:2,label:"R. Bintang"} { key:3,label:"R. Akasia"} { key:4,label:"R. Guest Room"} This is my SQL query: select '{ '||'key:'||IDMEETINGROOM||''||',label:"'||NAMARUANG||'"'||'} ' json ...