Model reusable SQL Oracle to create a DDL/DML Scripts for Oracle database
HelloI have an obligation to set up a model of Oracle SQL to create the Scripts DDL/DML reusable for Oracle databases.
Only the Oracle DBA will run scripts permissions is not a problem.
The workflow for any DOF is as follows:-
(1) new table
a. check whether the table exists in the views system/admin.
b. If the table exists then give message "Table exists".
c. If the table does not exist then run DDL code
(2) add the column
a. check if the column exists for a given table of the system/admin views
b. If the column exists in the specified table.
B1. backup table.
B2. ALTER table alter column
B3. check data or execute convert dml sauvegardΘ to the new change script.
c. If the column does not exist
C1. backup table
C2. ALTER table add column
C3. Run dml to populate the column with the default value.
The DML scripts are to populate the base tables with the data required for business operations.
(3) addition of new line
a. check if the line exists by comparing the old values of each column with the new values to be added for the new record.
b. If there is, to give message line is
c. If not exists, add the new record.
(4) update existing record (we createtime columns in these tables as well as changes can be tracked)
a. check if the row exists using the primary key.
b. If there is.
B1. off the record by using the "active" column of the table
B2. Add new record with the necessary changes.
c. If does not exist, add the new record with the necessary changes.
Could you please help with some ideas that can get this done with precision?
I tried several ways, but I am not able to set up something that meets all the requirements.
Thank you
If it helps at all. Sometimes we have a requirement for a DDL statement to be rerunable and her only error if something completely unexpected happens.
It's a little monstrous, but basically, we wrap all DDL in a dynamic statement and capture errors that would indicate that the DDL script has already been run:
Here's a bit of a model:
declare
w_ddl varchar2(32767);
begin
begin
--
dbms_output.put_line('Creating table TABLE_NAME');
--
w_ddl := 'CREATE TABLE MY_SCHEMA.TABLE_NAME
( COLUMN_1 DATE NOT NULL
,COLUMN_2 VARCHAR2(10) NOT NULL
,COLUMN_3 DATE
)';
--
execute immediate w_ddl;
--
dbms_output.put_line('Successfully created table TABLE_NAME');
--
exception
when others then
if sqlcode = -955 then
dbms_output.put_line('Table Already exists.');
else
dbms_output.put_line('creation of table TABLE_NAME failed:');
dbms_output.put_line(sqlerrm);
raise;
end if;
end;
begin
--
dbms_output.put_line('Creating unique primary key constraint for TABLE_NAME');
--
w_ddl := 'ALTER TABLE MY_SCHEMA.TABLE_NAME ADD (
CONSTRAINT TABLE_NAME
PRIMARY KEY
(TABLE_NAME_ID) USING INDEX)';
--
execute immediate w_ddl;
--
dbms_output.put_line('Successfully created primary key on TABLE_NAME_ID');
--
exception
when others then
if sqlcode = -02264 then
dbms_output.put_line('constraint already exists.');
else
dbms_output.put_line('creation of primary key failed:');
dbms_output.put_line(sqlerrm);
raise;
end if;
END;
<>
It works well with our scripts to autmoated and help us when we iterate through development and back in if needed test environments.
In this way, we can add the DDL statements to the deployment script and run the script again without error to set the database to the State required without having to run the newly created statement only.
Sometimes this approach translates into a creation followed a statement alter table statement to add a column, but the end result of the script is always the same, and the deployment script can be controlled at source between iterations of development that is without having to restore the ddl changes to test the modified DDL script.
hope that gives you some ideas.
Tags: Database
Similar Questions
-
What is this new SQL Beta - 1z1 - 071 - 2 SQL - Oracle Database SQL 12 c
Hello
It's confusing.
This looks like a 2nd review SQL for Oracle 12 c.
What is this new SQL Beta - 1z1 - 071 - 2 SQL - Oracle Database SQL 12 c
Can someone explain.
Roger
OK - I guess I should have held off a few hours before my previous answer. I just got an email in the Certification of Oracle program manager. Now, I have inside information.
1Z0-071 is a SQL new test and the role it plays is between that of the review of databases SQL and SQL Expert. Specifically, unlike review of databases SQL, passing it will give proof of the OCA for people who spend. I don't know more than that yet. The review details page is not available and if the subjects are currently a grey area for me. I'll probably create a blog on the review, if I can get a few details about it.
-
secconf.Sql. If it will work for upgrades or only for new databases?
Hello
I'm reviewing oracle 11g features and found that few things need special attention, such as checking the settings and the changes in the default profile.
Looking at the secconf.sql file, I found this note
REM only invoked for databases of newly created, not for upgrade of databases
My question is
(1) if I update a database to Oracle 10 G to Oracle 11 G, will, these changes in profile by default and the audit take place or not?
(2) these 11 G changes will happen if we create new databases using DBCA?
Thank you
DelphineIf you take a peek of scripts by calling secconf.sql in 11.2
/rdbms/admin, you see that secconf.sql can be run from catuprgd.sql with the following calling sequence: catupgrd. SQL-> catproc.sql-> catpexec.sql-> execseq.sql-> secconf.sql
You can retrieve it with:
pwd /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin [oracle@lx01 admin]$ grep secconf.sql *.sql execsec.sql:Rem Only run the secconf.sql script for new database creations, not execsec.sql: :secconf_name := '@secconf.sql'; secconf.sql:Rem $Header: rdbms/admin/secconf.sql /main/3 2008/10/26 23:05:27 apsrivas Exp $ secconf.sql:Rem secconf.sql secconf.sql:Rem secconf.sql - SECure CONFiguration script [oracle@lx01 admin]$ grep execsec.sql *.sql catpexec.sql:@@execsec.sql execsec.sql:Rem $Header: execsec.sql 12-jun-2006.13:39:34 rburns Exp $ execsec.sql:Rem execsec.sql execsec.sql:Rem execsec.sql - secure configuration settings [oracle@lx01 admin]$ grep catpexec.sql *.sql catpexec.sql:Rem $Header: catpexec.sql 06-jan-2007.20:57:33 rburns Exp $ catpexec.sql:Rem catpexec.sql catpexec.sql:Rem catpexec.sql - CATProc EXECute pl/sql blocks catproc.sql:@@catpexec.sql --CATFILE -X execcr.sql:Rem Run from catpexec.sql (catproc.sql) [oracle@lx01 admin]$ grep catproc.sql catupgrd.sql @@catproc.sql --CATFILE -X
Thus, it seems that catupgrd.sql still works secconf.sql. Given that catuprgd.sql is THE upgrade script (see http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/scripts004.htm#sthref3623), it seems that this secconf.sql is still running.
But this is not the case if you read execsec.sql code and comments:
Rem Only run the secconf.sql script for new database creations, not Rem for upgrades or any other reruns of catproc.sql. The version column Rem in registry$ is NULL while catproc.sql is running the first time Rem on a new database. VARIABLE secconf_name VARCHAR2(256) COLUMN :secconf_name NEW_VALUE secconf_file NOPRINT DECLARE p_version varchar2(30); BEGIN :secconf_name := '@nothing.sql'; SELECT version INTO p_version FROM registry$ WHERE cid='CATPROC'; IF p_version IS NULL THEN :secconf_name := '@secconf.sql'; END IF; END; / SELECT :secconf_name FROM DUAL; @&secconf_file
In the case of database upgrade registry .version $ is not null and above the code will run nothing.sql instead of secconf.sql:
[oracle@lx01 admin]$ cat nothing.sql Rem $Header: nothing.sql 18-oct-2001.09:57:38 Exp $
It is therefore very likely that secconf.sql is not running during the 11.2 database upgrade (I think that the same should apply to 11.1).
-
Modeler cannot export the DDL for databases Oracle (only work for DB2 databases).
Hello
First of all, I'm sorry for my English, I'm French.
I'm new with Oracle tools. I have my database with the DataModeler deisgned.
Before that I've got my schema versioning I could export the schema to DDL Server Oracle 12.
But since I have version control with Subversion I can only export to DB2 databases (screenshot follows):
Exporting to Oracle databases?
Thank you.
Well, unzip to the new directory doesn't mean a new facility because it is the same version and DM will use existing preferences - you must remove the directory with the preferences. For DM 4.0.2.840 this directory on my Win7 is:
C:\Users\
\AppData\Roaming\Oracle SQL Developer data Modeler\system4.0.2.840 After starting DM you must check "System Data Type Directory" "preferences > Data Modeler" - it should be empty or point to the directory with valid files - defaultRDBMSSites.xml and types.xml.
Posted the picture shows that these files are correct or not existing in the directory defined in your preferences
Philippe
-
Hello
I was wondering if you could help me.
I'm trying to find out how to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012? I'm not very technical, but it seems that the Oracle code does not work with SQL Management Studio when I drag the file inside.
I need the database Oracle express and its data to enter in SQL Management Studio, so any help would be much appreciated!
Thank you.
Hello
Your question is beyond the scope of this community.
Please repost your question in the SQL Server TechNet Forums.
https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer
See you soon.
-
Migration from SQL Server to Oracle database
I have 2 questions:
1. we intend to convert our sql server databases oracle OLTP databases. I tried to use SQL Developer to migrate a database of small sql server to oracle (size 5 GB) database. It was fine. When I tried to migrate to a different database (size 90G), it takes too much time. The problem with sql developer is I can not pick and choose tables. 250 paintings, I need to migrate tables abt 80 (the size will be abt 50 G). What is everyone can share their experiences, as appropriate, converting databases of size average sql server for oracle databases? other options?
2. I intend to convert the sql server ddl to oracle ddl. I have tested bcp out and use sql loader to import the data. Right now I am manually creating the oracle tables sql server tables. I use http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12069/apa.htm#BABCIIDI to convert the code. Are there other ways better to convert sql DDL DDL Oracle Server?
Thanks in advanceDDLS must be converted manually. Oracle is not SQL-Server.
If for example, you have the option of partitioning, you should consider using the partitioning index and when it is possible. Not all tables must be hash tables. Do postpone you creation of segment or not? What type of tablespace? Set yourself free percentages and allows you to manage when the data block is on the free list and how much is reserved in the block of data to update rows in this block?
There are many considerations to be taken with regard to the physical database design.
Using BCP and SQL * Loader sound good. SQL * Loader is fast and scalable - use it to load up to 3.6 million lines every 60 seconds. Direct and parallel charges will give the best performance in this regard (assuming that the underlying table structure and use supports this approach).
-
How can I propose extensions to Oracle SQL / Oracle DBMS?
Hallo
Is there a standard process to offer extensions to the Oracle database?
I waited for some extensions for Oracle 8 I consider as very useful and quite easy to implement compared to others who have found their way into the product. I want to put them in some sort of base of the proposal. How can I do?
These are the extensions:
(1) comparison of Tuple according to the lexicographic order
Imagine a table of SALES (product_id, year, quarter, amount).
I like question all sales of the third quarter of 2008 to the second quarter of 2009 as this:
and evenselect * from sales where (year, quarter) >= (2008, 3) and (year, quarter) <= (2009, 2)
Clues are lexicographically ordered, these conditions must be easily supported by the database. If there is an index on the SALES (year, quarter), it will be easy to make a simple index range scan here.select * from sales where (year, quarter) between (2008, 3) and (2009, 2)
Note that the notation of tuple is not completely new. I can write something like
These days, you should not set a table in the way we did above. You must set a date column year_quarter and represent each quarter - Let's say - from his first day, which is the third quarter of 2008 by July 1, 2008.select * from sales where (year, quarter) in (select year, quarter from some_table)
You might even guarantee this by a check constraint 'year_quarter = (year_quarter, 'q'). The above query must be written:
But it's still heavy.select * from sales where year_quarter between date '2008-07-01' and date '2009-04-01'
If you always set a table in the way that I did at the beginning, you will end up using index based on a function on phrases such as "year * 10 + quarter" in support of these "intuitive" such as queries
But imagine you want in 2008 and all you have is this a function-based index:select * from sales where year * 10 + quarter between 20083 and 20092
The index based on a function on SALES (year * 10 + quarter) does not help. You can write:select * from sales where year = 2008
But it's not really practical.select * from sales where year * 10 + quarter between 20081 and 20084
The extension project allows you to query both a given year (Beach) and a specific range of quarter, effectively using the same index defined on (year, quarter).
(2) comparison operators that deal with NULL as a normal value
If you need to compare two columns and treat NULL values as a normal value, you need to write something like "(t1.a = t2.a ou (t1.a est null et t2.a est null)"): "
It would be much easier to read and certainly much easier to optimize by the optimizer if there is an equality operator 'is' which deals with NULL as a normal value.select * from tab1 t1 where not exists ( select * from tab2 t2 where (t1.a = t2.a or (t1.a is null and t2.a is null) and (t1.b = t2.b or (t1.b is null and t2.b is null) )
You can even ask the same idea to >, > =, <, < = and allow such tags only 'with null max"and" min null ":select * from tab1 t1 where not exists ( select * from tab2 t2 where (t1.a == t2.a and (t1.b == t2.b )
select * from tab where x <= 7000 with null min and y >= 10 with null max
(3) new aggregate function to indicate that one value is expectednull <= null with null max --> true null <= 1 with null max --> false; 1 <= null with null max --> true 1 <= 2 with null max --> true
Imagine there is an aggregate function called unique (...) which takes all values and checks if they are identical. If so, this single value is returned. Otherwise, an exception SQL ORA-# is raised.
When you use the group by clauses and functionally dependent columns, you write queries as follows.
Imagine that you have a CONTRACT table (contract_id, contract_owner_id,...) and a CONTRACT_DETAIL table (contract_detail_id, contract_id,...).
You want to select all contracts and for each contract its owner and the number of the contract details. With 'unique', you can write:
Today, I write eitherselect c.contract_id , unique(c.contract_owner_id) , count(*) detail_cnt from contract c, contract_detail cd where c.contract_id = cd.contract_id group by c.contract_id
orselect c.contract_id , max(c.contract_owner_id) -- functionally dependant on c.contract_id , count(*) detail_cnt from contract c, contract_detail cd where c.contract_id = cd.contract_id group by c.contract_id
Both have drawback that I need to use a comment to describe what is happening. And worse, if my assumption was wrong, the database fails with an error and doesn't force me to rethink things.select c.contract_id, c.contract_owner_id, count(*) detail_cnt from contract c, contract_detail cd where c.contract_id = cd.contract_id group by c.contract_id , c.contract_owner_id -- functionally dependant on c.contract_id
Another use of unique (...) is in combination with analytical functions.
For example, when I use «aggr (...)» keep (dense_rank first/last seen by...) ", in most cases, the order by clause defines a unique first or last line."
In these cases, the aggregate function "aggr (...)" is of no real use.
Imagine a time-stamped time table PROJECT_STATUS with the 'no temporal primary key' project and the TS timestamp column.
Technically, (project, ts) is a unique key of the table. So, there is always only one line with the maximum timestamp TS.
I want to choose the status ID of all projects. I can write:
I can use 'min' instead of 'max' with the same result. Using 'unique' instead not wrongly suggests that a maximum or minimum is selected but would be only a mathematical expectation is chosen has established:select ps.project_id , max(status) keep ( dense_rank last order by ts ) as status from project_status ps group by ps.project_id
We have two variants of "unique":select ps.project_id , unique(status) keep ( dense_rank last order by ts ) as status from project_status ps group by ps.project_id
(1) normal 'single (x)' treats NULL as a value. Thus, it would be illegal if there were a few lines with x = NULL and a few lines with x = 5.
(2) "single (x ignores nulls)" ignores all values null (similar to "last_value(... ignore nulls) (...)") and is less strict because x must be unique for all non-null values. He allows that x has the value NULL for some lines and 5 for the other. In this case, it returns 5.You open a session request for improvement through Metalink.
The procedure is documented in Metalink document 166650.1 as follows:
How to connect to an enhancement request:
Create a new Service request in MetaLink.
In creating an SR - brief Description screen, in the problem field Type, select request for development.
Important factors to remember when to complete the Service request model requires development and create demand for services:
Fully describe why the current functionality of product does not satisfy your needs.
Explain in detail building wanted implemented
If possible, describe how the product can be changed to achieve the desired results.
Describe your expectations of the company. The dates of the step key and justifications as to why this request is so important and the benefits that your organization has everything to gain if it takes will be accepted.
Once your Service request has been created, it will be assigned to a Support engineer who will validate your information. In some cases, your application may be a defect in the product new or known that the technical support engineer may provide a fix, workaround, or adopt Oracle development for resolution. In other cases, you can present a valuable product enhancement that can improve the functionality of the Oracle product. In all cases, the Support Engineer will be able to qualify your application and pass the information to the development of the Oracle.
Once the technical support engineer validates your request and agreement on action plan is created, your Support Engineer will create a new development application and you provide with a request to improve tracking number. The research on MetaLink BUG tool then receive updates status.
Please note that the technical support engineer will end the SR once the improvement was noted.In addition, see the document 214168.1
-
Oracle Database vs. ofa data model
Friends,
I have three columns in a database table have dimensions of 2000 (varchar2)
and existing EO and s VO based on this
so obviously these columns of form OPS data model also 2000
But as a change request, I need to reduce them to 1500, 1000, 1000
I think that we cannot reduce the size in the oracle database.
Please correct me if iam wrong.
If this is possible please guide me
Thank you
Aravinda
I said, I did the same thing,
I think you did a sync "now, I synchrised with what I have added new columns only, now, in this respect its OK.'.»»
It is not identical to the OT and VO again to create with the same name. If you have not done this, do.
Also attach your research and the page controller update page. There could be something wrong in what you did.
See you soon
AJ
-
How can I create a list of choices for the search bit in Oracle 11g ADF fields?
Hi Experts,
Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.
I have a requirement to create a list of choices for the search store field. # Please notify.
Thank you
David Selvaraj
You can create a view based on a static list object and attach it to your attribute as lov-driven model.
Dario
-
Read an existing model (12 c + with the option of triple oracle database)
I've seen a few examples of code, all use the class 'oracle.spatial.rdf.client.jena.ModelOracleSem.createOracleSemModel (oracle, string);", which creates an RDF model, but I have already created using SQLplus and I want to do a simple READ. Is it possible to do?
NB: my trip was this, I realized this tutorial (everything works fine), but now I want to reproduce CRUD queries on the model of the family (which is extracted from the Oracle documentation) using JAVA, the Jena API.
Code:
OracleThin. createOracleSemModel (oracleThin.getOracle (), modelName);
}
Hello
I'm trying to understand your question. If you have four models and I assume that you want to run a SPARQL query against the union of the four models, right? If that's your goal, you can do something like:
String [] modelNames = new String() {"datebaseeva", "datebaselocalebackup", "datebaseMesuresMains"}; String [] rulebases = new String [] {}; Piece attached attachment = Attachment.createInstance (modelNames, rulebases, InferenceMaintenanceMode.NO_UPDATE, QueryOptions.ALLOW_QUERY_INVALID_AND_DUP); //
The following allows us to reach EVA, LOCALEBACKUP, MESURESMAINS for model of REGIONAL settings
//
Chart GraphOracleSem = new GraphOracleSem (oracle, "datebaselocale", room attached, true); Dim queryString As String =
"PREFIX ORACLE_SEM_FS_NS: http://oracle.com/semtech#allow_dup=t>"+ ___PUT_YOUR_QUERY_HERE___; "
ModelOracleSem m = new ModelOracleSem (graph); Query query = QueryFactory.create (queryString);
Now, the following query will be executed on the 4 models.
QueryExecution qe = QueryExecutionFactory.create (query, m);
It will be useful,
Zhe Wu
-
Comparing the data set of Oracle database local to the Remote SQL Server database
Hello
I have a table in an Oracle database that is gradually being updated with a table in SQL server through the database link. There is a field "Date of creation" in the table in SQL server that I used to find the newly created records and shoot and insert them into the local table to the Oracle database.
Now the question is the documents/data in the SQL server remote can be deleted as well and I see a lot of files are already deleted and I couldn't find a way to capture the information of deleted data to remove from my local table.
I tried
SELECT id local_table
where there is no
(select * (or 1))
of remote_table@database_link
where remote_table.id = local_table.id).
And I tried to replace not exist with no so.
The problem is that the query is too slow with link of database for IN/NOT EXISTS clause NO. So, I'm trying to find an effective way to capture the lines deleted in the remote to remove as a result of my local table table.
Any help is appreciated.
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit
Thank you
Chrystelle
It is perhaps easier
Select pk / * or sustitutive key * / from Oracle.tba
less
Select pk / * or sustitutive key * / from SQLSERVER.tab
This returns the rows that exist in Oracle but not in SQL SERVER-> delteted lines in SQL Server.
Another way is to create a trigger to remove in sqlserver and track in a table delete lines.
HTH - Antonio NAVARRO
-
The maximum size of the model in SQL Data Modeler?
Hello
The number of objects is the maximum value that can be used in a model in SQL data maker. I reverse engineered a scheme (see previous posts - thank you to all that helped) which contains 1000 + tables (a candidate for remanufacturing if ever I saw a!) but the Data Modeler is struggling to display them and performs very slowly. I can pull the same schema in the Oracle Designer and that works well, as ERwin-t - y at - it something I can do to improve the performance of the Data Modeler?
Or people would recommend cutting the model into smaller pieces, which will be a little difficult because it's a bit of a rat's nest.
John
Hi John,.
You can try to fix the memory usage - Re: problem of memory with large model
And you may have better performance if divide you large diagram in subviews.
Philippe
-
Problem establish Oracle Database Gateway for SQL Server
I configured dblink between Oracle and SQL Server by using the 'Oracle Database Gateway for SQL Server' method.
I use dg4odbc and freetds, suite Doc-ID 561033.1 .
I have my isql and osql works correctly, tsql.
But get below error when query any table/column of Oracle sql * for the sql server database.
Select subscription_type in Address@ITSMSP;
ORA-28511: lost RPC connection to heterogeneous remote agent using SID = ORA-28511: lost CPP
connecting to heterogeneous remote agent to help
SID = (Description = (Address = (Protocol = TCP)(Host=localhost) (port = 1522)) (CONNECT_DATA = (SID = ITSM-Prod)))
ORA-02063: preceding the line of ITSMSP
As per below track appears after the connection is a failure.
I get this error with each table or column selection.
I already prepare DBlink user id and password with the double quotes and link with the apostrophe.
One thing surprised me when I close my session it request commit or rollback.
Although I don't do anything except select.
I already tried by setting autocommit on, but still getting the same error.
We create the oracle for sql server before database gateway. This time, few things are different:
1. the name of the server (on sql server database) contains a '-' hyphen.
2. name of database server Sql contain also one '-' hyphen.
2 sql database server for windows 64 - bit OS, prior, we used 32 bits.
Please let me know if anyone set the Oracle database gateway using dg4odbc and freetds to sql server where the database of sql server resident in 64-bit windows machine.
Here's the snapshot trace: remove the server name with *.
Oracle Corporation - Tuesday 2 April 2013 21:15:38.096
Heterogeneous Agent release
11.2.0.3.0
Oracle Corporation - Tuesday 2 April 2013 21:15:38.096
Version 11.2.0.3.0
Hgogprd entries
HOSGIP to 'HS_FDS_TRACE_LEVEL' returned '4 '.
Hgosdip entries
default assignment of 50 HS_OPEN_CURSORS
setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
HS_FDS_RECOVERY_PWD layout to the default
default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
HS_IDLE_TIMEOUT layout to the default 0 value
layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
layout by default «AL32UTF8» HS_NLS_NCHAR
layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
layout HS_FDS_DATE_MAPPING default 'DATE '.
layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
HS_FDS_FETCH_ROWS layout without '100 '.
parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
HOSGIP returned the value 'FALSE' to HS_FDS_SUPPORT_STATISTICS
parameter HS_FDS_QUOTE_IDENTIFIER if there is no 'TRUE '.
setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
HS_FDS_WORKAROUNDS layout by default "0".
Release of hgosdip, rc = 0
ORACLE_SID is ' *-* '.
Product information:
Port RLS / Upd:3 / 0 PrdStat:0
Agent: Oracle Database Gateway for ODBC
: Installation
Class: ODBC, ClassVsn:11.2.0.3.0_0011, Instance: *-*.
Release of hgogprd, rc = 0
Hgoinit entries
HOCXU_COMP_CSET = 1
HOCXU_DRV_CSET = 31
HOCXU_DRV_NCHAR = 873
HOCXU_DB_CSET = 873
HS_LANGUAGE is american_america.we8iso8859p1
LANG is en_US. UTF-8
HOCXU_SEM_VER = 112000
Entry hgolofn to 2013/04/02-21: 15:38
HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/lib64/libodbc.so '.
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLAllocHandle
symbol_peflctx = 0x2ca08300
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLBindCol
symbol_peflctx = 0x2ca08390
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLBindParameter
symbol_peflctx = 0x2ca08b50
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLCancel
symbol_peflctx = 0x2ca09dc0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDescribeParam
symbol_peflctx = 0x2ca11890
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDisconnect
symbol_peflctx = 0x2ca11d30
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLEndTran
symbol_peflctx = 0x2ca14580
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLExecute
symbol_peflctx = 0x2ca15a20
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFetch
symbol_peflctx = 0x2ca16220
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFreeHandle
symbol_peflctx = 0x2ca17c40
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFreeStmt
symbol_peflctx = 0x2ca17c60
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetData
symbol_peflctx = 0x2ca19370
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetEnvAttr
symbol_peflctx = 0x2ca1c4f0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetFunctions
symbol_peflctx = 0x2ca1c890
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLMoreResults
symbol_peflctx = 0x2ca1e330
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLNumResultCols
symbol_peflctx = 0x2ca1ef80
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLParamData
symbol_peflctx = 0x2ca1f280
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPutData
symbol_peflctx = 0x2ca210b0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLRowCount
symbol_peflctx = 0x2ca21480
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetEnvAttr
symbol_peflctx = 0x2ca22fc0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetDescRec
symbol_peflctx = 0x2ca22e10
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLColAttribute
symbol_peflctx = 0x2ca0a3e0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLColumns
symbol_peflctx = 0x2ca0bb80
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLConnect
symbol_peflctx = 0x2ca0f4f0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDescribeCol
symbol_peflctx = 0x2ca11150
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDriverConnect
symbol_peflctx = 0x2ca12890
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLExecDirect
symbol_peflctx = 0x2ca154b0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLForeignKeys
symbol_peflctx = 0x2ca16b40
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetConnectAttr
symbol_peflctx = 0x2ca17fb0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDescField
symbol_peflctx = 0x2ca199d0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDescRec
symbol_peflctx = 0x2ca19e90
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDiagField
symbol_peflctx = 0x2ca1b060
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDiagRec
symbol_peflctx = 0x2ca1bc90
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetInfo
symbol_peflctx = 0x2ca1cad0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetStmtAttr
symbol_peflctx = 0x2ca1d4d0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetTypeInfo
symbol_peflctx = 0x2ca1df90
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPrepare
symbol_peflctx = 0x2ca1f9b0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPrimaryKeys
symbol_peflctx = 0x2ca1fec0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLProcedureColumns
symbol_peflctx = 0x2ca20470
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLProcedures
symbol_peflctx = 0x2ca20b00
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetConnectAttr
symbol_peflctx = 0x2ca21770
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetStmtAttr
symbol_peflctx = 0x2ca24320
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetDescField
symbol_peflctx = 0x2ca22b30
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLStatistics
symbol_peflctx = 0x2ca258c0
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Entry hgolofns to 2013/04/02-21: 15:38
LIBNAME=/usr/lib64/libodbc.so, funcname is SQLTables
symbol_peflctx = 0x2ca26550
hoaerr:0
Out of hgolofns to 2013/04/02-21: 15:38
Release of hgolofn, rc = 0 to 2013/04/02-21: 15:38
HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
Invalid value of 64 for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Release of hgoinit, rc = 0 to 2013/04/02-21: 15:38
Entry hgolgon to 2013/04/02-21: 15:38
Reco:0, name: *, tflag:0
Entry hgosuec to 2013/04/02-21: 15:38
Release of hgosuec, rc = 0 to 2013/04/02-21: 15:38
HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
using the * as a default for 'HS_FDS_DEFAULT_OWNER '.
HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
Entry hgocont to 2013/04/02-21: 15:38
HS_FDS_CONNECT_INFO = ' *-* '.
RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
Entry hgogenconstr to 2013/04/02-21: 15:38
DSN: *-*, name: *.
OPTN:
Entry hgocip to 2013/04/02-21: 15:38
DSN: *-*.
Release of hgocip, rc = 0 to 2013/04/02-21: 15:38
# > connection settings (len = 39) < #.
## DSN=****-****;
#! UID = *;
#! PWD = *.
Release of hgogenconstr, rc = 0 to 2013/04/02-21: 15:38
Entry hgolosf to 2013/04/02-21: 15:38
ODBC function-available-table 0xFFFE 0x00FF 0xFF00 0x03FF 0xFB7F 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0 x 0000 0xFE00 0x3F5F
Release of hgolosf, rc = 0 to 2013/04/02-21: 15:38
DriverName:libtdsodbc.so, DriverVer:0.91
DBMS name: Microsoft SQL Server DBMS Version: 95.10.0255
Release of hgocont, rc = 0 to 2013/04/02-21: 15:38
SQLGetInfo Returns Y for SQL_CATALOG_NAME
SQLGetInfo Returns 128 for SQL_MAX_CATALOG_NAME_LEN
Release of hgolgon, rc = 0 to 2013/04/02-21: 15:38
Entry hgoulcp to 2013/04/02-21: 15:38
Entry hgowlst to 2013/04/02-21: 15:38
Release of hgowlst, rc = 0 to 2013/04/02-21: 15:38
SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
Able TXN: isolation 2, Option: 0xf
SQLGetInfo Returns 128 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo Returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 134 to SQL_MAX_PROCEDURE_NAME_LEN
HOSGIP returned the value "TRUE" to HS_FDS_QUOTE_IDENTIFIER
SQLGetInfo returns "(0 x 22) for SQL_IDENTIFIER_QUOTE_CHAR"
instance 2 capabilities will be uploaded
context: 0x00000000, capno:1989, add info: 0
context: 0x0001ffff, capno:1992, add info: 0
Release of hgoulcp, rc = 0 to 2013/04/02-21: 15:38
Entry hgouldt to 2013/04/02-21: 15:38
NO translation of DD for instance have been downloaded
Release of hgouldt, rc = 0 to 2013/04/02-21: 15:38
Entry hgobegn to 2013/04/02-21: 15:38
tflag:0, original: 1
Hoi:0x4093b4c8, ttid (len 38) is...
00: 54415058 2E435245 49474854 4F4E2E45 [TAPX]
10: 44552E33 61383332 3362322E 312E3233 [3a8323b2.1.23]
20: 2E323037 3631 [. 20761]
tbid (len 35) is...
00: 54415058 2E435245 49474854 4F4E2E45 [TAPX]
10: 44555 B 31 2E32332E 32303736 315D5B31 [[1.23.20761] [1]]
[20: 2E345D [. 4]]
Release of hgobegn, rc = 0 to 2013/04/02-21: 15:38
Entry hgodtab to 2013/04/02-21: 15:38
number: 1
Table: address
Allocate hoada [0] @ 0x14eedc70
Hoada free [0] @ 0x14eedc70
SQL text of hgodtab, id = 0, len = 23...
00: 73656C 65 6374202A 6 202241 2066726F [select * 'a]
10: 64647265 737322 [prepare]"
Entry hgodscr_process_sellist_description to 2013/04/02-21: 15:38
Thanks a lot for your help.
PAL
Published by: 997807 on April 3, 2013 07:26Hello
Thanks for the information. 2.2 UnixODBC driver manager is quite old and there is now one more late 2.3.1 version available here.http://www.unixODBC.org/
by clicking on the tab "Download".
Can you download and install this version then use in the configuration instead of the 2.2 version?Kind regards
Mike -
Difference between Oracle database and SQL or SQL Developer +?
Hello
I am very very new to Oracle... Only yesterday I installed Oracle 11 G for learing... I found to create an Oracle database
Oracle Db11gHome1 = > Configuration and Migration Tools = > Database Configuration Wizard
... blah... blah... blah... Success... I created...
But I found the menus
Oracle Db11gHome1 = > application development = > SQL Developer
Oracle Db11gHome1 = > = application development > SQL Plus
And so I get confused... I know SQLSERVER 2008... etc... to create databases... So the above said two is for what purpose?
Anyone can show me a route for this spirit of quarrels?
Thank youHello
Welcome to the world of Oracle.
SQL Developer: http://www.oracle.com/technetwork/developer-tools/sql-developer/what-is-sqldev-093866.html
SQl more: http://docs.oracle.com/cd/B13789_01/server.101/b12170/qstart.htm
These docs will give an initial advance for these tools.
Something in common between these two tools is: both are used to access the Oracle database.
Thank you
Navneet -
With regard to the migration of the Oracle database to MS SQL
Hi all
In my application, oracle is the existing database. We need to migrate from Oracle database to MS SQL.
We need procedure is as below
1 export data from Oracle and keep it in a file. (.dmp)
2 import data from MS SQL in the oracle export file.
and vice versa from MS SQL to Oracle.
My question is - it is possible to import the .bmp (oracle export data) in MS SQL.
Please clarify for me.There are two options to get the data from Oracle to MS SQL.
The simplest is to create a linked in MS SQL to Oracle server and copy the data with a query like select * in oracle.schema.table my_mssqlTable; via the linked server.
Some data types will not be supported.
That's an instant copy.If you need a fence at real-time replication, you can use replication MS (I would not recommend because it creates triggers on the Oracle tables), or you can use GoldenGate or DataCurrents or other replication products.
Maybe you are looking for
-
Can not see my window of Firefox with tabs, but they somehow open
When I start Firefox, there is a tile on the bar tasks, but the window does not get drawn. Firefox is completely unusable.I tried to reboot Windows and reinstall of Firefox.(Windows 7 Professional, service pack 1, 64-bit)Version of the Firefox 29.0.1
-
Tecra M2 - VAP for Vista needed
I upgraded my old M2 to run Vista professional/Ultimate Edition.Any PPV Toshiba compatible, can I use? I have a slow performance probably due to the processor at 600 MHz clock, which is well below the specification M735, or 1.7 GHz running.I'm seeing
-
How to use Notepad and utube at the same time on an ipad?
Is there a way to mulitask with two apps on the iPad, I want to take notes while watching a utube video?
-
SOLVED: Handling Play lists w/o Rhapsody or WMP
I use my e270 for audio books, music. I would like my own playlists in place and place unnecessary selections that are pre-installed in \SYSTEM\PLAYLIST (for example: Dinner Music.dat;) Dining Music.ext; Dinner Music.rjp) Does anyone have the file fo
-
Hello My problem:-J' use desktop connection to a remote server remotely. Operating system remotely is Win2008.-Today, after the update of the victory and reboot that I can not connect with the usual account.-After entering password I see a short peri