Oracle Questions
Ad
Are foreign keys really necessary in a database design?
As far as i know, foreign keys (fk) are used to aid the programmer to manipulate data in the correct way. suppose a programmer is actually doing
In a client-server application: How to send to the DB the user's application password?
I have an java desktop application which connects directly with the db (an oracle). the application has multiple user accounts. what is the
A snippet to monitor the last INSERT/UPDATE in an Oracle DB from C#?
I'm looking for a simple, sample snippet of c# code to monitor an oracle database and basically check for its last update. it could be either
How to resolve SQL query parameters mapping issues while using Oracle OLE DB provider?
When trying to enter a sql query with parameters using the oracle ole db provider i get the following error: parameters
How do I deploy an ADF business component?
How do i deploy an adf business component to the middle tier and call it using
Bulk Row Transfer between Oracle Databases with a Select Filter
Basically, i'm trying to selectively copy a table from one database to another. i have two different [oracle] databases (e.g., running on
Boolean Field in Oracle
Yesterday i wanted to add a boolean field to an oracle table. however, there isn't actually a boolean data type in oracle. does anyone here know
Why am I receiving the PSL-00103 Error in Oracle SQL?
I am trying to make a procedure that would insert a row into a table in oracle sql. however, i can't figure out a solid reason on why this issue
How to determine the Schemas inside an Oracle Data Pump Export file
i have an oracle database backup file (.dmp) that was created with expdp. the .dmp file was an export of an entire
Using multiple nested queries in Oracle DBMS
I want to select the contact info (email and phonenumber) of all employees working between 2 time ranges in shops of type market and have
Ad
JPA - Write a "Reverse" like Predicate (like operator applied on column instead of inparam) - Oracle DBMS
I need to write a "reverse" like condition with jpa predicate over oracle dbms. the example query i need to build is:
Why does DBMS used with join causes Ambiguous column name?
I have this request in oracle that is used by a php file $pub_request = oci_parse($conn, " select * from tp2_publicite p,
Joining tables with filter condition on multiple columns in Oracle DBMS
{ "description": "test", "id": "1", "name": "test", "prod": [ {
Best way to measure query time in different DBMS (MySQL, SQlite, Postgres, MariaDB, Oracle)
For college i'm doing a thesis on performance in different dbms. i have set of tables with same set of data in 5 different dbms (mysql, mariadb,
Checking DBMS versions in PL/SQL
I am looking for a way to find all previous versions of the dbms (oracle is used). my point is to return versions of the dbms that ever existed on
How do I give an alias name to the values printed by dbms output in PL/SQL?
I have this following code which prints the department number and department name from dept table whose department number is less than 40.
Update column as update from 01-01-21 to 15-01-21 and so on as on after each 15 days it will change from dbms range
What i have is this: vi_id dp_date employee_id qty prate 1/1/2020 10000001 33 1/2/2020 10000001
Unable to establish JDBC connection to Oracle DBMS in Eclipse
I'm using oracle 18c express edition and trying to connect to the same using the below code.
oracle dbms sql question) case statement without subquery
Select case to_char(last_day(sysdate),'day') when '1' then last_day(sysdate) - 1
How to stop a running command in oracle 11g DBMS
I used to write pl/sql procedures in oracle dbms. few times i would end up in situations like infinite loop and the query continuously running i
DBMS Scheduler error: ORA-27367: program "Schema.PROG_programname" associated with this job is disabled
I have created an oracle job using dbms scheduler.but the status gets failed in the execution. it gives the following error. 'ora-27367:
Ad
Error on DBMS output while printing text and calculated result using PL/SQL block
I'm using oracle sql developer making pl/sql code. my code is to print the data by using a mathematical formula in dbms_output. however, codes
My Oracle SQL Code is compiling my block of code that uses a cursor for a loop from two tables but the dbms output line is not showing the results
I am trying to write a block of sql code that compares two dates from two tables. one table shows when an item was acquired (ci_acquired_date).
SQL get all the columns form a user that has at least 2 vowels in the column name and also its length is superior to 8 in ORACLE DBMS
For this assignment i have to return the names of the columns in all tables from a specific user where the column name has at least 2 vowels and
Oracle: transpose table
I've got the following query select 1, 2 from dual and i'd like something like select
Building a Table Dependency Graph With A Recursive Query
I am trying to build a dependency graph of tables based on the foreign keys between them. this graph needs to start with an arbitrary table name
I get error when sending data using express from node server to client side JavaScript
I am making a post call from ajax to node server. server makes the call and gives the response. but also below error displays in the cmd
How can I mock/fake/stub sealed OracleException with no public constructor?
In my tests i need to test what happens when an oracleexception is thrown (due to a stored procedure failure). i am trying to setup rhino mocks
What is a good way to open large files across a WAN?
I have an application deployed into multiple zones and there are some issues with opening larger documents (20-50mb) across the wan.
Oracle listener state blocked
I have a webpp which works fine when under a light load. however, when we run a lot of threads each with their own database connection, then we
Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031
I have loaded image into a new, initialized oracle ordimage object and am processing it by pl/sql. i can read its properties, but cannot process
Getting data from an oracle database as a CSV file (or any other custom text format)
A sample perl script that connects to an oracle database, does a simple select query, and spits the results to stdout in csv format would be
Ad
Why can I not add a check constraint that makes the user enter an email ending in a specific address
Implementing: an employee email address should use the company domain. that is, the email address should end with 'abcco.com'.
How can I join 4 tables
Please help to modify the below code. i want to join these two select queries such that i can get a single output with records from two diff
How change varchar and date to timestamp Oracle
In raport i create, i take data and separate hour in varchar. i must concat that and change type to timestamp date from user '20220323' in
Filter by date in oracle SQL
I have a table with a date column (dd/mm/yyyy hh:mm:ss) as follows: 02/09/2021 09:50:37 03/09/2021 09:20:27 02/09/2021 14:05:25
how to add string or an of characters in mysql while using group by function
For example, i have a table named xyz and it has a column country, how can i take out results in the following format using group by function,
How to log in an Oracle database?
I am interested in what methods of logging is frequent in an oracle database. our method is the following: we create a log table for the
PL/SQL ERROR cannot identify what the error is, PSL-00103
I was asked to write a simple procedure, that inserts a new row into a table under certaing condition. the database: table users - user_id ....
PLSQL : ORA-00904 invalid identifier in Cursor Select
I have external table created as below. create table external_table ( "col1" date ,
OR condition doesnt work properly in JPA Query
I have the following entities class productunitofmessure @manytoone @joincolumn(name="product_id") private product
Three-table join with NO EXISTS
I have three tables and would like to answer the following question in sql: "who has only certifications that do not have
Ad
oracle field combination
I am making a query to a table, where i am interested in bringing the contract numbers that are being repeated, and for this i use partition by,
ORACLE: Splitting a string into multiple rows
I am trying to split a string "hhhwwwhhhhwwwwwhhwwwwwhhwwwwwhh" is there any possibility to make like : h h h w w w
Cannot convert a varchar value of 100 into number under a grade column in Oracle SQL
I have a column entitled "grade" and defined as varchar2(3); however when i have a grade value of '100' the system under oracle sql
Is there a way to CASE DD-MMM-YYYY date format?
I am trying to case a column that has a date format of dd-mmm-yyyy. basically, i am trying to convert the dates into a fiscal year column
What is the difference between Views and Materialized Views in Oracle?
What is the difference between views and materialized views in oracle?
Why the returning object of the orm function is limited to 100?
In a node.js project i'm using oracle-orm-zn for the
SQL - Why am I getting an ORA-00918 Error? I defined a column that's duplicated
I'm trying to complete an exercise for an assignment for my database programming class using oracle livesql. i defined the column that appears in
Connecting to oracle database using python(cx_oracle)
I am trying to connect to oracle database using cx_oracle in python. i am able to connect to the database and pull the data. now i am
Merge two table
I have two tables, one table has from_serial, to_serial and transaction_date. and another table has serial_no and activation_date. i want to merge
Oracle - Rank and transform on columns
I got a sample data as below in this cte_orders. each row is a order and contains the user_id, zone_code and zone_name. i need to rank the
invalid SQL statement while declaring a rowtype record in oracle
I am trying to display a record rowtype in oracle, i am getting sql error [900] [42000]: ora-00900: invalid sql statement at line 7
Ad
node-oracledb get the output parameter
I have the code below for our erp system with ifs. the code calls a stored procedure after setting all the parameters. p3 is an inout parameter
Using custom authentication on Laravel 6
I would like to manually authenticate the users in my company. the issue is that, i have 2 tables, called student and staff in the oracle
Run Powershell Command from Oracle Procedure
I need to print pdf documents to my network printer from my android studio application. i want to print the pdf as is with all images and
ORA-00933 sql command not properly ended ( in insert query )
I want the following query to be executed but i get an error: insert into personal_info (case_type) values ('unknown') where
Insert data into an oracle database table in NodeJS
I would like to insert data into an oracle database table by using insertintotable which is referenced in the code below; the
Hide a div in Oracle-jet
I am creating an oracle-jet application, in which i have a requirement to use ojet-lists. i call the data dynamically from a rest api. here's the
NodeJS - How to download from a blob?
How can i return a file from a blob column using nodejs? i'm using the oracledb library to handle the database operations and
how to create a view/table from a single column
Enter image description here so i have the following table and
Creating Oracle Database Table with Numeric Permission Level
I am creating an oracle database with a table called roles. i want the permission_level row to store values 1,2,3,4, or 5. how to i limit
Using Case Statement in SQL
I have been learning sql,and i was trying to learn about the case on oracle livesql: this is the query i am trying to use:
How to transform a LOB (Binary image) to send to Firebase Storage
I need to return some oracle images that are recorded in lob field to send them to firebase storage. i am using oracledb with typescript
Ad
SQL Before Delete IF statement
Ok so i'm writing a trigger in sql and what needs to happen is that if t is deleted and f.actdepartdatetime is not null then the table is backed
oracle: Error: NJS-012: encountered invalid bind data type in parameter 2
I am inserting new users into users table in oracle db but encountering this error, oracle: error: njs-012:
Passing list to PL/SQL procedure
There was a similar question
How can I solve sql record grouping problem?
I'm trying to figure out a way to return results by using the group by function. is it possible to have a group by ignoring the null field.
inserting CLOB to database selected from another
I have two unrelated oracle 11g database instances. i need to select a value of type clob from the one database and insert it to the other with
How to use column.nextval with oracledb
I have a column in my table for an id that is normally populated with .nextval. the .nextval works perfectly as a normal sql statement such as
Graphql execute where condition only if the argument is passed
I am using graphql in node js for my oracle database wherein i connect to the remote database and fetch some details. i am fairly new to these
Oracle SQL case condition involving one column but changing another
I'm trying to change the sortest_tesc_code of any tuple whose sortest_test_date is greater than 5 years to zzz select sortest_pidm,
What is the most efficient way of updating multiple records in Oracle with same value
We have a batch job that needs to update millions of rows (not all rows) of a table with a particular value. we have the following
Adding time stamp values to a table
I have lately started learning sql,and as a part of my assignment,i was trying to solve this question:
Replacing multiple special characters in oracle
I have a requirement in oracle to replace the special characters at first and last position of the column data.
Ad
The same stored procedure in schema doesn't work package
I have following stored procedure inside the package: create or replace procedure
org.springframework.web.client.RestClientException: Could not write request: no suitable HttpMessageConverter found for request type
Response.setcontenttype("application/json"); response.setcharacterencoding("utf-8"); printwriter out = response.getwriter(); string
Error connection with JDBC to Oracle service name (jaydebeapi)
I try to make oracle request in python from raspberry pi. the problem is: "oracle does not support the arm cpu architecture which the
Unable to bind in Node.js node-oracledb module
I have following code but it just doesn't seem to work. i don't understand what's wrong. await connection.execute( `update
NPM Oracle: Inserting BLOBs
I am trying to use the npm oracle library and update some tables with blob values created from files on my computer. oracle documentation says to
Find tables & columns that will have the specific data in oracle
I want to find the columns in all the tables that could have the specific data or value in oracle. example:[email protected] how can i
Creating Oracle Procedure To Update Table
I'm trying to create a procedure in an oracle database that will update the pmbpcsb with an 'x' if any of the other columns have a value present.
NOT GROUP By issue
I try to make a sum in this formula but i have one issue, not group by expression ? who is the problem ? select round( sum(
oracle ELSE case runs regardless
I have a case statement (mycol is a number): select case when mycol < 0 then 0 else round(power(10,avg(log(10,mycol))),2) end
What percentage of customers live between 2 & 5 miles from the HQ
I have a table of distances from headquarters in 2 dp. i am trying to find the percentage of customers within 2 and 5 miles. select
can't receive data from flutter to nodejs
I try to make login with flutter, nodejs(express), and oracle the backend is working when i test it with postman i can get the token here postman
Ad
How to know laravel connect with Oracle oci8 and select statment write
Here is my code in laravel with oci8. i get this result oci8 statement resource @364 . does anyone
cx_Oracle installation fails with FileNotFoundError: [WinError 3]
My organisation does not allow me to use pip to install python libraries, hence i downloaded the zip for cx_oracle (python-cx_oracle-master.zip)
PL/SQL: iterator value from FOR loop as a variable not working
I don't understand behaviour of my code. why when i have select min(i.column_name) into value_min from employees; in my code (see
Use Oracle's DBMS_SESSION.set_context in Entity Framework Core
I have the need to show on my .net core program an oracle view that in the database has some columns filtered by ... where
query to find the second most common word in a table (oracle sql)
So i have a table employees as shown below id | name | department ---|------|----------- 1 | john | home 2 | alex | home 3 |
how to call a procedure in oracle to Laravel model
I'm new to this, i have some project that i must use a procedure in my oracle to run on laravel model/controller, but first in the model i already
Exclude Certain Year from a Date Column
I'm using oracle database version 12.1.0.2.0. i'm running a query that returns two columns, "permit #" and "date issued."
How to select two rows from a joined table
So i have two tables with information below one which is a holiday table which marks the location to and from and etc. and another table that has
Connection is not defined in oracledb
I am using the oracledb cen node.js module and when making a database connection to make a select, it returns the data but this error also
PL SQL Remove HTML Encoding
I know you can remove html tags with a command such as this: regexp_replace(overview, '<.+?>') but, some of
How can i append dataframe from pandas to the oracle table?
I want to append dataframe (pandas) to my table in oracle. but this code deletes all rows in table:( my dataframe and my result become
Ad
Can't import cx_Oracle in docker image
I'm building a python file with docker. in this python file, i import cx_oracle to do something with oracle. i can run the python
Login page using reactjs as frontend and nodejs with oracledb as backend
I am using react js for frontend and node js for backend along with oracledb. i need to make the login page using the above technologies with
Ad
Blog Categories
Ad