Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
43 views

So I have been tasked to automate numerous reports which i succeeded mostly apart from this one case, I tried many recommendations from chatgpt but most were busted, the broken excel file started ...
Cheney raj Chadalavada's user avatar
1 vote
1 answer
61 views

[Q] How to fix ORA-29024: Certificate validation failure when connecting from host to Oracle in Docker? my docker image: container-registry.oracle.com/database/adb-free:latest-23ai ubuntu 24.04.1, ...
Doodu's user avatar
  • 67
0 votes
1 answer
52 views

I have a procedure run_rest. Executing this procedure in sqlplus works perferctly - i get response from external system. But executing this in plsql developer throws 400: Bad request. Does someone has ...
q4za4's user avatar
  • 702
0 votes
1 answer
45 views

Simple problem. For audit purposes, a new set of steps was initiated when we sign into an Oracle DB using SQLPlus. At the first SQL> command prompt, we immediately activate spool to a file with a ...
TomV's user avatar
  • 1
1 vote
0 answers
173 views

I would like to change in my file sqlnet.ora from OSMSFT:// to MSLSA: to integrate Microsoft security. The problem come when I try to open a database in with authentification Kerberos like : sqlplus /@...
SRI_Techno's user avatar
-1 votes
1 answer
50 views

(Context: I have literally only 30+ hours on SQL & its concepts; Just started fiddling with Oracle, mysql workbench) A screenshot that depicts what I said below Currently, I have an ERD that has ...
newbie_tweaker's user avatar
1 vote
1 answer
51 views

I am using matlab to fetch data from our process database (AspenTech infoplus.21 historian). I constantly find myself looking for interesting time intervals. Usually I do this in matlab after first ...
danneedebro's user avatar
1 vote
2 answers
58 views

How to call a stored procedure from SQL*Plus with blob input parameters? Below a sample of the SP to be called: procedure p_dummy_proc (sessionId varchar2, accountId integer, lobData blob, oId out ...
Alessandro Cucina's user avatar
2 votes
1 answer
105 views

The output I need (I need to add multi-line headers): The output I am getting: My Query: -- Enable SQL*Plus HTML Markup SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON SPOOL "C:\...
Mehak's user avatar
  • 23
0 votes
1 answer
88 views

Output needed in this format: I am using SQL*Plus to generate an HTML report from an Oracle database using SET MARKUP HTML ON. However, the output file contains raw HTML tags as plain text instead of ...
mhk's user avatar
  • 21
1 vote
1 answer
19 views

I have shell script which inserts/updates data into oracle tables, what I don't understand is there is no explicit COMMIT in the script but data is committed to database, how is this possible? I have ...
Aravind's user avatar
  • 149
0 votes
1 answer
88 views

I'm trying to use variables in a ALTER SEQUENCE statement inside a BEGIN END block. When hard coding the Schema name and the sequence name it works perfectly. But when I try to use variables instead ...
gwinnem's user avatar
  • 76
1 vote
0 answers
48 views

When trying to connect to the database in sql*developer, I get the following line: An error was encountered performing the requested operation: I/O Error: The Network Adapter could not establish the ...
buggi's user avatar
  • 11
0 votes
1 answer
423 views

I am trying to connect to oracle database in mac system. My team generally works on Java so for development. we generally do this to connect to db in java. We connect to ssh tunnel which allows us to ...
Bhavin 's user avatar
0 votes
2 answers
74 views

I am trying to input an Oracle query statement into a variable in a Unix shell. I want to remove the header of the SQL result value, so I want to include "set heading off" in the QUERY ...
SEUNGJAE MOON's user avatar
0 votes
0 answers
58 views

I am using import os # Specify the directory you want to change to, take input from keyboard directory_path = r"C:\code\xyz\deployment\tbd\example" # Change the directory os.chdir(...
BBBBBBBBBBBBBBBBBBBBBBBBB's user avatar
0 votes
0 answers
21 views

I want to grant sys.v_$session to user c##DSLI01 and so run the following command in sqlplus: SQL> show user USER is "SYS" SQL> SELECT privilege, table_name FROM ALL_TAB_PRIVS WHERE ...
user1169587's user avatar
  • 1,448
0 votes
1 answer
44 views

I connected via sqlplus like this: sqlplus user/password@SID I have a .NET application which also connects to the same database using the same user and password. But once sqlplus is connected, it was ...
Frank Martin's user avatar
  • 3,477
0 votes
0 answers
91 views

I would like to insert my file (csv) into a BLOB column (Oracle), I use a Korn Shell script to call an insert sql script via a SQLPLUS statement. my problem is that I don't know how to pass my file as ...
user22972259's user avatar
0 votes
1 answer
58 views

I have a simple SQL query which returns 21 rows of data when I run it in Toad. However, when I SPOOL the results to a CSV, I always get less than 21 rows of data, e.g. 16 rows one run, then 10 rows ...
OUTATIME121GW's user avatar
0 votes
1 answer
132 views

SQL*Plus: Release 18.0.0.0.0 - Production on Wed Nov 13 09:30:39 2024 Version 18.4.0.0.0 Copyright (c) 1982, 2018, Oracle. All rights reserved. Enter user-name: sys as sysdba Enter password: ERROR: ...
Lakshmi's user avatar
2 votes
0 answers
93 views

I have a requirement to build a dynamic filter criteria based on filters I receive. Initially, I used the Specification approach, and it is working as expected in production. However, the new ...
Deep Dalsania's user avatar
1 vote
1 answer
236 views

I am using Oracle 19c. I can get the following to work: variable max_id number; exec select 41 into :max_id from dual; begin dbms_output.put_line(:max_id); dbms_output.put_line(:max_id+1); end; ...
ramesesjd's user avatar
  • 313
0 votes
1 answer
45 views

I am trying to output my constraints using both data dictionary tables. I want the output to include CONSTRAINT_NAME CONSTRAINT_TYPE TABLE_NAME COLUMN_NAME POSITION LAST_CHANGE, but I am not ...
Vivian Nong's user avatar
0 votes
1 answer
33 views

I would like to run SQL statements using Oracle SQLplus via SSH using Python. So far, I have the following code: import subprocess sql = """ SET TIME OFF SET TIMING OFF SET HEADING OFF ...
Prokhozhii's user avatar
0 votes
1 answer
51 views

if we write code in oracle sql command line like SELECT COUNT(*) FROM user_tables; (it will give us the total number of tables in database). if we write SELECT table_name FROM user_tables; ( it is ...
KHAN SAHAB's user avatar
0 votes
2 answers
937 views

Good afternoon community, I have a PLSQL script executed against ORACLE 19 that is displaying an error that I don't understand. The script drops any existing index before recreate them. The objects ...
Simon's user avatar
  • 333
0 votes
1 answer
75 views

I'm trying to catch an OS Error message just like when we catch SQL Error Messages. An example of this error could be SP2-0310: Unable to open file: "file name". I would normally just use ...
Felipe Vidal's user avatar
0 votes
1 answer
179 views

I had a problem with Oracle. I have solved it already (I am going to show how) but I would appreciate any explanation about the reason for the malfunction. THE CONTEXT I've declared a package of ...
Alessandro's user avatar
0 votes
1 answer
54 views

I am using oracle sql developer . Whenever we run any table / view sql with blank lines in between, the sql developer ignores it and executes the query perfectly. The feature is good, problem is the ...
Balachandar Thangavel's user avatar
-1 votes
1 answer
354 views

Hello i m trying to execute this query with sql plus and i get the error ORA-01741: illegal zero-length identifier. Can you please help with it. INSERT INTO FCCR_DATA_MAPPING(ID_API,DATA,COLUMN_NAME,...
user26656363's user avatar
0 votes
2 answers
699 views

I'm trying run EXPDP on an Oracle 19 database but it doesn't recognize any of the schema names apart from sys. select * from dba_users; when run in Oracle SQL Developers returns all the users I'd ...
GMcS's user avatar
  • 3
2 votes
1 answer
397 views

I am trying to install sqlplus without the rest of the oracle client onto a laptop with windows 11. I installed it from the instant client zip but when I run it I get the message SP2-0667: Message ...
John Zajic's user avatar
1 vote
0 answers
58 views

I have a test table "bbb". COLB bba aa1 bbb aaa bbb bb1 and do following commands: variable a varchar2(20); begin :a:='bbb'; end; / set heading off; spool C:\Temp\test.txt; set feedback ...
Timur Pak's user avatar
2 votes
2 answers
295 views

I installed a local database and used SQL Developer to create a test table. Database connection works, also the table is created and populated; example here Running this example code in Python throws ...
Arbiter Vildred's user avatar
0 votes
1 answer
122 views

I know how to declare a variable in Oracle sql plus but not sure with the constant declaration , Pls guide with that : An example of variable declaration : DEFINE v_target_table_name = '...
radha's user avatar
  • 175
0 votes
1 answer
129 views

DDL scripts do not need COMMIT statements as per the docs. If I run these statements in SQL Developer, no commit is required: CREATE TABLE dummy_table(ID NUMBER(38,0) NOT NULL PRIMARY KEY); CREATE ...
Sybuser's user avatar
  • 1,756
2 votes
1 answer
155 views

Normally starting the command-line version of sql*plus (sqlplus.exe) would retain the current working folder, allowing a script that is stored in that same folder to be run with the @ command. D:\...
David0337's user avatar
0 votes
2 answers
79 views

I want to define a variable for further use in the query. Something like this: --does not work-- define Name = 'Table_name' define tableNm1 = concat(&Name, '_001') define tableNm2 = concat(&...
STEP's user avatar
  • 11
0 votes
1 answer
133 views

I have tried both of these methods for sending two commands to the commandline with sqlplus. Neither are working. What am I doing wrong? I thought one of them would work. sqlplus username/password@...
noobprogrammer1987's user avatar
0 votes
1 answer
140 views

I need to act over several database clients, these client have a static name APPUSR with numbers (1,11,12,13 2,21,22,23 3,31,32,33 ...) Id. APPUSR1,APPUSR12, APPUSR3, APPUSR32,.... I thought loop ...
Atropo's user avatar
  • 3
0 votes
0 answers
58 views

i am trying to build an sql plus script that extracts some values out of my database to do a log search with them afterwards. It looks like this, amended to not use real data: IFS='' read -r -d '' SQL ...
Broetchenholer's user avatar
0 votes
2 answers
46 views

I'm running a SQL job from Linux. I'm trying to grab the start time and end time of the job so I'm using the following SQL to grab SYSdate select to_char(sysdate - 5/24, 'YYYY/MM/DD HH:MI:SS') "...
RagnarLB's user avatar
1 vote
1 answer
79 views

I am trying to do exactly what the question says: selecting from a table, replacing special characters from a column, order the result, then spool to a .csv file, with a custom delimiter. I can only ...
Wei Xiong's user avatar
  • 207
0 votes
1 answer
44 views

I recently posted a question using DBLinks and monitoring invalid objects. Now I've got to make a table and register by date all invalid objects and make comparisons between runs of this code and if ...
Opal R's user avatar
  • 27
1 vote
1 answer
185 views

I am very new to Oracle Develop PL/SQL language (so please excuse limited understanding). I am trying to use a spool command to dynamically create a filename based upon a table row values. Below is ...
DigitalNomad's user avatar
  • 1,079
0 votes
2 answers
184 views

I need to return the BANNER_FULL column from v$version if the database version is 18+, otherwise return the BANNER column. Both exist in all versions, but banner is deprecated. column v_dbversion ...
Glyph Master's user avatar
0 votes
0 answers
56 views

I can't seem to be able to write my script correctly. problem is I don't realy understand how pipes or bash work yet. I have a script to execute on multiple servers an get the result of each back to ...
Hiul_Dragonfel's user avatar
1 vote
1 answer
118 views

I have to make a monitor that detects invalid objects for different DBlinks. I've tried with a code in different files for each DBLink -- Enable logging of results to a specific file SPOOL C:\route ...
Opal R's user avatar
  • 27
0 votes
0 answers
598 views

After database installation (Fedora Workstation 39) I am able to login to oracle database using oracle system user using following command: sqlplus system/manager I have another user called user that ...
user1291806's user avatar

1
2 3 4 5
70