oracle-sqldeveloper

Oracle, Blob data are missing in my export file

心已入冬 提交于 2019-12-23 09:39:33
问题 I use Oracle 11g, I am trying to export my data(only the data, not table create scripts etc.) So it can be imported by customer to their database When I use Oracle Sql developer's export database, it only exports the data but my BLOB's are missing! There are a lot of image files in one of my tables which I want to export as well. I wonder If I really need to use oracle exp imp tool; http://docs.oracle.com/cd/B28359_01/server.111/b28319/exp_imp.htm#i1004777 Any idea? 回答1: From the

Oracle - How to force user to INSERT multiple row

守給你的承諾、 提交于 2019-12-23 06:06:02
问题 I am using Oracle 11gR2 on an Academic Assignment. There is a constraint which a room must have 3 - 5 people. I know that I can write a Trigger like this to check if a room has more than 5 people: CREATE TABLE People ( PID INTEGER PRIMARY KEY ); CREATE TABLE Room ( RID INTEGER PRIMARY KEY ); CREATE TABLE Living ( RID INTEGER, PID INTEGER, CONSTRAINT Living_PK PRIMARY KEY (RID, PID), CONSTRAINT Living_FK_RID FOREIGN KEY (RID) REFERENCES Room(RID), CONSTRAINT Living_FK_PID FOREIGN KEY (PID)

Parameter variable schema oracle

徘徊边缘 提交于 2019-12-23 05:34:10
问题 I'm newbie using Oracle. I have a question: in SQL Server, we can use: DECLARE DBNAME1 VARCHAR(20) DECLARE DBNAME2 VARCHAR(20) SET @DBNAME1 ='TEST_DB' SET @DBNAME2 ='TEST_DB2' INSERT INTO @DBNAME1.TABLECORE SELECT * FROM @DBNAME2.TABLENONCORE T What is the equivalent of this script in if @DBNAME == Schema in Oracle? 回答1: We can manage it but creating db link on dbname2 : create public database link dbname2 connect to myschema using 'abc-scan.mycompany.com.tr:1521/dbname2.mycompany.com.tr';

update SQl table from values in excel

我们两清 提交于 2019-12-23 05:31:12
问题 I am using the SQL Developer or SQl express. How do i get the values from an excel sheet and update those in a column of my database... Please help thanks. i have this and im running it but i get error: SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\books.xls', 'SELECT * FROM [Sheet1$]') i get error now OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not find installable ISAM.". thanks 回答1: Do you have SQL Server

TRIGGER AUTO_NUM_GEN compiled Warning: execution completed with warning

我们两清 提交于 2019-12-23 04:48:35
问题 I run the following statements in oracle sql developer using oracle 11g express as my database. I only run into problems when i try to create the trigger. I get the message - TRIGGER AUTO_NUM_GEN compiled Warning: execution completed with warning The SQL- CREATE TABLE myschema.mytable (mynums NUMBER PRIMARY KEY); CREATE SEQUENCE myschema.seq_of_nums MINVALUE 1 START WITH 1 INCREMENT BY 1 CACHE 10; CREATE OR REPLACE TRIGGER myschema.auto_num_gen BEFORE INSERT ON myschema.mytable FOR EACH ROW

Oracle SQL MIN and MAX combination from same table

坚强是说给别人听的谎言 提交于 2019-12-23 04:37:30
问题 I have below mentioned data. I am looking to get max of Start message and corresponding min or success message. Start Message Table ID1 Timestamp_start_msg_recieved date jobid message time in seconds 1234 5/14/2014 10:02:29 5/14/2014 abc start 262 1234 5/14/2014 10:02:31 5/14/2014 abc start 264 1234 5/14/2014 10:02:45 5/14/2014 abc start 278 1234 5/14/2014 10:02:50 5/14/2014 abc start 285 1234 5/14/2014 10:09:04 5/14/2014 abc start 165 1234 5/14/2014 10:09:06 5/14/2014 abc start 2167 1234 5

SQL Worksheet is not displaying in SQL Developer

浪尽此生 提交于 2019-12-23 01:43:12
问题 Suddenly SQL worksheet is not displaying in my SQL Developer. When I click on ' Open SQL Worksheet ' or Alt+F10 nothing will appear. I have tried many things such as: uninstalling SQL developer; cleaned the appData; changing java version; change SQL Developer version; and so on. But nothing has worked. Help? 回答1: While any the software - SQLDeveloper got error or something worng. You can try to backup whole sqldeveloper directory from C:\Users\AppData\Roaming\ then delete it. But remember to

Oracle Delete Statement: how many rows have been deleted by cascade delete

末鹿安然 提交于 2019-12-22 23:24:09
问题 I'm executing a statement like DELETE FROM USER WHERE USER_ID=1; In SQLDeveloper. As the user is referenced in many tables (for example the user has an order, settings, ...) we activated ON DELETE CASCADE so that we do not have to delete each and every row manually. However while developing we are interested to know how many rows and and in which tables are "automatically" deleted by cascade delete. Is there any way to find this out. Either by SQL-Statement, directly in sqldeveloper from a

How to store Japanese character in oracle DB?

只谈情不闲聊 提交于 2019-12-22 17:46:12
问题 I want to store Japanese(or any language) character in one column of my oracle database table. I have used varchar2 as data type. when I am trying to insert this character(ꏕ) to this column its stored as '[]'. Don't know what to do. Need help. Note: I tried to change the data type to nvarchar2 still didn't work. https://translate.google.co.in/?hl=en&tab=wT#auto/en/Kinj%20A%20%CC%88%EA%8F%95%20%C9%82%20%C8%82%20%C4%82%20%E6%82%A9%0A%ED%82%A9%20%C3%84%20%EA%8F%95%20%C9%82%C8%82%C4%82%20%E6%82

how do I read a local file in SQL Developer?

China☆狼群 提交于 2019-12-22 14:18:14
问题 I want to read a file on my local machine that contains query parameters when I execute a query in Oracle SQL developer. The examples that I've found on the web so far are inadequate. I keep getting "ORA-29283: invalid file operation" errors when I execute the below code: CREATE DIRECTORY SAMPLEDATA2 AS 'C:'; GRANT READ, WRITE ON DIRECTORY SAMPLEDATA2 TO PUBLIC; declare f utl_file.file_type; s varchar2(200); c number := 0; BEGIN f := utl_file.fopen('SAMPLEDATA2','sample2.txt','R'); loop utl