Oracle and O/S Scripting Guide
i need your help.
i need scripting guide that cover unix and sql combination scripting writing guide.. i would prefer basic level guid please provide me a link thanx in advance
rajeysh wrote:
sorry, aman . i just want to view the forum columns/topics for learning purpose. sometimes in motivation of helping others. i replied. I never do this anymore.Nope, no need to say sorry mate! Some times, help is not giving what the person is asking. At times, asking a "why, what for" is more important than giving a solution to the person. That's what was the case with supplying a download link to a book which is available for purchase. I know it can be costly to buy some books. I did purchase the mentioned book just 2 weeks in a very steep price (got it imported) but I am happy that I bought it and in this way, I did give something back to the authors who have put a lot of effort in writing a book. That's what the whole point was of me and Fahd saying to you to remove the link(right Fahd? ) . No need to apologize, we all are fellow members only of this forum.
Aman....
Similar Messages
-
C# application to execute both oracle and sql server script files.
Hi All,
I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice.
Both the script files(oracle/sql server) contains scripts to create tables, create views and create functions.
What is the best way to do this and which existing c# functions should is use.
Thanks in advance.I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice.
You can use SQL Plus for Oracle. You can have a C# program that issues commands for scripts for table, views, triggers creation and the whole 10 yards to SQL Plus,
http://docs.oracle.com/cd/B19306_01/server.102/b14357/qstart.htm
https://www.google.com/#q=sql+plus
I started writing a program to use SQL Plus to run the scripts, but cI ame to the conclusion that it was a waste of my time.
A tool called OSM, an Oracle, tool gives a list of script files that need to be run do to a change in a script file based on file timestamp. You can copy the list doing a copy/past operation and drop it into SQL Plus's Command line, and SQL Plus runs the
scripts.
For MS SQL Server, you have this, which you can run from a C# program too.
http://www.webfactory-world.de/wfknowledgebase/wfknowledgebase_wf3.3/Content/AdditionalWindowsSettings/Tutorials/UpdatingSQLDBFromCommandLine.htm
I would consider using the above from a C# program a waste of time too.
I look at it this way. If the user doesn't have database admin experience and know how to use DB admin tools, then they have no business doing anything with a database - period.
BTW, the Invoke statement in VB or C# will run SQL Plus or SQL Server command line tool. -
Oracle Clusterware and Oracle Real Application Clusters Install Guide
I've downloaded the latest "Oracle Database - Oracle Clusterware and Oracle Real Application Clusters Install Guide - 10g Release 2 (10.2) for HP-UX PA-RISC" (part no. B14202-01) dated August 2005 from OTN. I'm getting the following error when opening the pdf file in Adobe Reader:
"Cannot extract the embedded font 'PEPPLC+Palatino-Italic'. Some characters may not display or print properly."
When I print the manual, I get blank pages throughout the document which, in my opinion, should contain text and don't. Specifically pages 1-11, 2-5, 2-19, 2-24, 2-33, 3-5, 3-19 to name a few. When I go to those pages within the pdf file in Adobe Reader, I get the error: "There was a problem reading this document (114)."
Can you verify this problem on your end. Also, how do I get a good copy of this document?Hi!
Apologies for the delay in responding to you. Please try the documentation library, part B19306-01 at URL: http://www.oracle.com/technology/documentation/database10gR2.html. Search for the part B14202-01 and click: pdf at top right. Part B14202-01 documentation pdf is currently displaying and printing on this end. The blank pages at the end of each main topic are inserted on purpose.
Another link to part B14202-01, on OTN is under the OEM, Oracle Enterprise Manager 10g Release 2 (10.2): http://www.oracle.com/pls/db102/portal.portal_db?selected=21
Thank you for your comments and feedbacks. Its much appreciated.
Main OTN, documentation URL: http://www.oracle.com/technology/documentation/index.html
Regards,
Chao -
on page 88 of the "Backup and Recovery User's Guide 12c Release 1 (12.1) E17630-13", the example 5-1 SHOW ALL Command is the same of the "Backup and Recovery User's Guide 11g Release 2 (11.2) E10642-06" on page 82 and that output is related to a Oracle Database 11g version (the 10g doesn't print the first line "RMAN configuration parameters for database with db_unique_name PROD1 are:").
My test cases here:
Database administrator workshop: Differences in default RMAN configuration settings between 12c and 11g
{code}[oracle@vsi08devpom ~]$ export ORACLE_SID=CDB001
[oracle@vsi08devpom admin]$ sqlplus system/oracle@CDB001
SQL*Plus: Release 12.1.0.1.0 Production on Thu Sep 26 09:10:50 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Last Successful login time: Tue Jul 16 2013 13:43:48 +02:00
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> show con_name
CON_NAME
CDB$ROOT
[oracle@vsi08devpom ~]$ rman target /
Recovery Manager: Release 12.1.0.1.0 - Production on Thu Sep 26 09:12:42 2013
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB001 (DBID=4134963396)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name CDB001 are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/app/oracle/product/12.1.0/db_1/dbs/snapcf_CDB001.f'; # default{code}
{code}
[oracle@localhost orcl]$ rman target /
Recovery Manager: Release 11.2.0.2.0 - Production on Wed Sep 25 08:12:17 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1229390655)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/snapcf_orcl.f'; # default
{code} -
Data sync between oracle and sql server
Greetings Everyone,
Your expert views are highly appreciable regarding the following.
We at work are evaluation different solutions to achieve data synchronization between oracle and sql server data bases. Data sync i mentioned here is for live applications. We are runnign oracle EBS 11i with custom applications and intending to implement a custom software based on .NET and SQL Server. Now the whole research is to see updates and data changes whenever happens between these systems.
I googled and found Oracle Golden Gate, Microsoft SSIS, Wisdom Force from Informatica....
If you can pour in more knowledge then it's great.
Thank You.Most of the work involved has to be done through scripts and there is no effective GUI to implement OGG.However using commands is not vey togh and they are very intutive.
These are the steps, from a high level:
1.Get the appropriate GG Software for your source and target OS.
2.Install GG on source and target systems.
3.Create Manager and extract processes on source system
4.Create Manager and replicat processes on target system
5.Start these processes.
First try to achieve uni-directional replication. Then Bi-directional is easy.I have implemented bi-directional active active replication using Oracle DBs as source and target. Refer to Oracle installation and admin guides for more details.
Here is a good article that may be handy in your case.
http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html
Edited by: satrap on Nov 30, 2012 8:33 AM -
What is the difference between Oracle and MySQL
Hi,
I would like to know the major difference between Oracle and MySQL. I have a project to generate XML files from database tables, i have used oracle's built XML functions XMLELEMENT, XMLATTRIBUTES, XMLFOREST, XMLAGG. I really want to know if these functions (or) similar functions are supported/availabe in MySQL.
I am having a hard time to find out best linux distro for installing Oracle11g, so i am planning to switch to MySQL. Please help, Thanks in advance.Oracle_Walker wrote:
Hi,
<snip>>
I am having a hard time to find out best linux distro for installing Oracle11g, Then you must be "looking for love in all the wrong places."
What's so hard about finding a "best linux distro for installing Oracle11g"? The supported distros are listed in the fine Installation Guide for Linux. At the top of the list is Oracle's own Oracle Linux, which is in the same family as Red Hat.
so i am planning to switch to MySQL. Please help, Thanks in advance. -
Oracle Application Server 10g Installation Guide for Windows
The link to Oracle Application Server 10g Installation Guide for Windows on the OTN Web Site don't work. Using search on site does not turn up any installation document for Oracle Application Server 10g.
How can I find the Installtion Guide or the Quick Installtion Guide for Oracle Application Server 10g for Windows?Hi,
The docs you seek are available through the OTN documentation pages at: http://otn.oracle.com/documentation/index.html.
Click on the link for "Oracle Application Server Release 10g (9.0.4)" and then on the "View Library" link for part B10468_04 - Oracle Application Server 10g Online Documentation 10g (9.0.4.0.0) for Microsoft Windows.
The Docs are located under the Documentation tab.
Alternatively, here is the direct link to the Documentation Tab interface of the Library:
http://download.oracle.com/docs/cd/B10468_04/docs.htm
Regards,
Les -
OBIEE 11g write back to Essbase and run calc script feature
Hi,
I have a requirement to write back into Essbase Cube and run calc script from OBIEE dashboard.
From what i have search on google, we must deploy additional Java Script into weblogic, but that is before OBIEE 11.1.1.6.
I have 2 question:
- Does OBIEE 11.1.1.6 already supported native write-back to Essbase and running calcscript?
- Anyone has example of the custom java-script for write back and running calcscript?
And another, if there are requirement like this, is it better to install Essbase Add-in on Microsoft Excel and do the what-if analysis there, then just display the report on OBIEE dashboard? (based on user-friendliness and the complexity on maintenance)
Thanks in advance.Hi,
Even I am trying to achieve the same thing as you have mentioned but think that it is not possible to achieve easily in obiee 11.1.1.6, though we do have a work around to perform a writeback in Essbase cube using JAPI as mentioned below.
Also we can call Hyperion reports from OBIEE using Action Links and also pass parameters to the same but dont know if it runs calculation script.
Below link could be useful for you for write back workaround.
http://oraclebizint.wordpress.com/2009/05/25/oracle-bi-ee-10-1-3-4-1-writebacks-to-essbase-using-japi-and-custom-html-part-1/
Let me know in case you have found out anything else related to same.
Thanks, -
Differences between Oracle and Oracle Rdb.
My background is mainly VMS, and so I have grown up (since 1984) with DEC Rdb (now Oracle Rdb). I am starting to get into Oracle, and therefore, starting to learn the subtle differences. With this in mind could someone educate me as to the default transaction type when using SQLPLUS (using interactive SQL it's READ WRITE). What is the initialization file called for SQLPLUS, and are there equivalents to the logical names SQLINI, SQL$DATABASE, SQL$EDIT, etc.
If there is someone out there with experience of both, may be you could ease my pain by posting your pearls of wisdom, or tips, here to help me along the way.OK, I'll try a few, having moved from VAX/Rdb to Oracle 10 years ago.
Oracle's default transaction state is read-write, isolation level READ COMITTED. This means you generally don't need to do a "SET TRANSACTION" at the start of a transaction, and certainly don't need to keep doing commit;set transaction to see the latest values.
In read-write transactions Oracle does not lock rows on read to maintain consistency in the way Rdb used to. Usually people use SELECT ... FOR UPDATE, or update directly (without a separate select) rather than using isolation SERIALIZABLE, which is the equivalent of Rdb's default.
A script login.sql is executed at the start of a SQLPLUS session. On Unix, it looks for this in the current directory, and the home directory.
On UNIX, SQL$DATABASE becomes "export TWO_TASK=dbname"
On Windows, SQL$DATABASE becomes "set LOCAL=dbname"
I strongly recommend Tom Kyte's Expert one-on-one Oracle book to help your transition, and his web site asktom.oracle.com
Good luck, and welcome. -
Calling oracle function in OMB script
Hi
Can anyone please tell me how can i get the returned value of an oracle function in OMB script. or how can i get the value into OMB variable and use it.
Basically i want to set the properties of OWB mapping via OMB script.
Following OMB code sets the max error limit of a mapping.
OMBALTER MAPPING 'MAP_DATA' SET PROPERTIES (MAXIMUM_NUMBER_OF_ERRORS) VALUES ('100')
i dont want to hard code the value 100 rather i want this value to be returned from a function.
If it is not possible then plz tell me how can i set MAXIMUM_NUMBER_OF_ERRORS property of OWB mapping via sql or pl/sql.
Any type of clue will be highly appreciated.
Best RegardsHere is my bare-bones OMB SQL Library to allow you to do pure SQL calls from within OMB+. All I have ever used it for is to run queries, so I don't have a library procedure for calling a function, however if your function is SQL-callable (e.g. select my_func() from dual) then it would work. Either that or you'll want to augment this library to build a procedure that will call and return the results from a java preparedStatement. It's something I've been meaning to do, but haven't got around to it yet.
All you should need to do is save this as it's own tcl file and then source it at the top of your own script, or embed it into your script.
EDIT: Here is a page with some sample code on using java.sql.CallableStatement to call a Pl/SQL procedure from Java which should certainly do the trick for you in conjunction with the basic session control in my library.
http://www.exampledepot.com/egs/java.sql/CallProcedure.html
Cheers,
Mike
package require java
#file omb_sql_library.tcl
proc oracleConnect { serverName databaseName portNumber username password } {
# import required classes
java::import java.sql.Connection
java::import java.sql.DriverManager
java::import java.sql.ResultSet
java::import java.sql.SQLWarning
java::import java.sql.Statement
java::import java.sql.CallableStatement
java::import java.sql.ResultSetMetaData
java::import java.sql.DatabaseMetaData
java::import java.sql.Types
java::import oracle.jdbc.OracleDatabaseMetaData
# load database driver .
java::call Class forName oracle.jdbc.OracleDriver
# set the connection url.
append url jdbc:oracle:thin
append url :
append url $username
append url /
append url $password
append url "@"
append url $serverName
append url :
append url $portNumber
append url :
append url $databaseName
set oraConnection [ java::call DriverManager getConnection $url ]
set oraDatabaseMetaData [ $oraConnection getMetaData ]
set oraDatabaseVersion [ $oraDatabaseMetaData getDatabaseProductVersion ]
puts "Connected to: $url"
puts "$oraDatabaseVersion"
return $oraConnection
proc oracleDisconnect { oraConnect } {
$oraConnect close
proc oraJDBCType { oraType } {
#translation of JDBC types as defined in XOPEN interface
set rv "NUMBER"
switch $oraType {
"0" {set rv "NULL"}
"1" {set rv "CHAR"}
"2" {set rv "NUMBER"}
"3" {set rv "DECIMAL"}
"4" {set rv "INTEGER"}
"5" {set rv "SMALLINT"}
"6" {set rv "FLOAT"}
"7" {set rv "REAL"}
"8" {set rv "DOUBLE"}
"12" {set rv "VARCHAR"}
"16" {set rv "BOOLEAN"}
"91" {set rv "DATE"}
"92" {set rv "TIME"}
"93" {set rv "TIMESTAMP"}
default {set rv "OBJECT"}
return $rv
proc oracleQuery { oraConnect oraQuery } {
set oraStatement [ $oraConnect createStatement ]
set oraResults [ $oraStatement executeQuery $oraQuery ]
# The following metadata dump is not required, but will be a helpfull sort of thing
# if ever want to really build an abstraction layer
set oraResultsMetaData [ $oraResults getMetaData ]
set columnCount [ $oraResultsMetaData getColumnCount ]
set i 1
#puts "ResultSet Metadata:"
while { $i <= $columnCount} {
set fname [ $oraResultsMetaData getColumnName $i]
set ftype [oraJDBCType [ $oraResultsMetaData getColumnType $i]]
#puts "Output Field $i Name: $fname Type: $ftype"
incr i
# end of metadata dump
return $oraResults
# SAMPLE CODE to run a quick query and dump the results. #
#set oraConn [ oracleConnect myserver orcl 1555 scott tiger ]
#set oraRs [ oracleQuery $oraConn "select name, count(*) numlines from user_source group by name" ]
#for each row in the result set
#while {[$oraRs next]} {
#grab the field values
# set procName [$oraRs getString name]
# set procCount [$oraRs getInt numlines]
# puts "Program unit $procName comprises $procCount lines"
#$oraRs close
#oracleDisconnect $oraConnEdited by: zeppo on Nov 25, 2008 7:19 AM -
Hello,
I have one .dbf (Dbase format) file,but don't have a Dbase software So Can I directly insert data from .dbf file into Oracle ? With SQL loader I have to create character delimited file,Without creating delimited files, Can I insert data into Oracle Table ?
any idea ?
Thanks in advance.
nullHi
Upon a time there was Oracle6 DOS client and DB3prep utility in them (it was part of Oracle OS/2 client too). This utililty produce control file for SQL Loader that can load DBF file. Here is example:
LOAD DATA
INFILE "tsb.dbf" "DB3 73"
APPEND
INTO TABLE tsb (
TSB POSITION(2:3) CHAR,
TEXT POSITION(4:73) CHAR)
73 is length of DBF record plus one. The first position is dBase flag for deleted records (space for real record and asterik (*) for deleted records). I am using this syntax on many platforms and different Oracle versions - it works until now.
If you prefer I can send you C source and Windows executable utility that read DBF and produce SQL script for creating a table and CTL file for loading data.
Regards
null -
Oracle Database 10g: Performance Tuning guide
Oracle Database 10g: Performance Tuning guide
can any one help me where i can get above mentioned guide
thanx in Advance
regards,There's this wonderful website called Google: http://www.google.com. If you type in the exact same thing as this thread title, the first results listed will no doubt shock, surprise and amaze you ...
Enjoy !!
Cheers
Richard Foote
http://richardfoote.wordpress.com/ -
Question about transfer between oracle and sql server
Could i program to transfer lots of data between Oracle and SQL Server quickly?
I have tried make two connection between two databases, but it took me lots of time to transfer data.
How could I do it?
ThanksHi,
If you need to move data fast, then use the Oracle Migration Workbench to Generate SQL Server BCP data extraction scripts and Oracle SQL Loader files.
This is the fastest way to migrate the data.
In the Oracle Model UI tab of the Oracle Migration Workbench, right mouse click on the tables folder. there is a menu option to 'Generate SQL Loader ...' scripts. This will help you migrate your data efficiently.
Regards
John -
What are the Basic Differences between Oracle and MS-SQL server Database?
Hello,
anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
Regards,
BalaramSQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
The SQL Server advantages:
SQL Server holds the top TPC-C performance and price/performance results.
SQL Server is generally accepted as easier to install, use and manage.
The Oracle Database advantages:
Oracle Database supports all known platforms, not only the Windows-based platforms.
PL/SQL is more powerful language than T-SQL.
More fine-tuning to the configuration can be done via start-up parameters.
Samrat -
Differences between TOAD for Oracle and Oracle SQL Developer?
Does someone know the advantages and disadvantages of using TOAD for Oracle and Oracle SQL Developer?
I work making reports with TOAD, but in a few days I will have to use the SQL Developer (because it´s free) unless I justify the necessity of using TOAD.
Could some that used both compare them?
Thanks,
Facundo.Hello Facundo,
since we are rolling out new client PCs we switch from Toad to SQL Developer. Therefore I'm doing some training for the "normal" users and our developers.
Most users simply want to have access to the data in tables and views. For those there are 2 main issues:
- Filters get lost when exiting table while sorting is still applied. Since there is no way to apply filtering before entering the data tab this can become a great performance issue because sorting is applied to many many rows. For views it is sometimes impossible to open the data tab.
- Exporting date values to Excel needs some know how if you want to sort by this column in Excel, because the date is formatted as "Standard" meaning that the sorting is done as for a text column: 01.01.2009 is less than 02.01.2008. Here you have to use a workaround column with a formula (=1*<datecolumn>)
The greatest Pro is the easy sharing of connections and reports by XML files.
Our developers like the easy debugging in SQL Developer. Though they miss the feature that the source is compiled for debug automatically as in Toad. For this we have distributed a script that compiles any PL/SQL object for debugging.
There are only some Toads installed for DBAs and for users that need access to tables protected by policies that require authentification by OS user since this information is not passed under every circumstance.
Regards
Marcus
Maybe you are looking for
-
Update from Snow Leopard 10.6.8 to Yosimite problem
I am trying to update my Mac OS X 10.6.8 to Yosimite. When I get to the screen to download, it asks for my apple id and password, which I enter. Afterwards the screen doesn't go any further. I can see the wheel turning, indicating it is working, b
-
hi, my code is ; select vbeln audat kunnr auart from vbak into table t_vbak2 for all entries in t_vbfa2 where vbeln = t_vbfa2-vbelv and audat in r_daterange and kunnr = partner_number. if not t
-
Hi, Is there a working example to expose AQ's as Webservices. Regards Deepak
-
Hi all, I am working on a project which will allow a person to be working on code and have other users sign in and post comments to there code to help them with problems. One of the features I wanted to have is a terminal windows in which the user co
-
After upgrade to Win 8, the key's has changed
After upgrade to Win 8, the key's has changed, for example, when i am trying type @ but the key has changed as ". so please help me to rectify the problem.