Jobs in Oracle Server 8.0.5
Hi!
I have an Oracle server 8.0.5 installed in WIndows NT 4 (SP 6).
And I submitted a Job, but when the right time comes, this job is not executed.
who installed oracle server wasn't me, so i don't know much confguration details.
in other test i have done, I installed the same oracle server in other computer and submitted the job. and the job is executed.
i think there's some setting i hve to config, but i don't know what.
any help ?
Thanks
Jose Carlos
Brazil
hi John,
The Oracle Migration Workbench lets you do this. Just specify the
correct connect information and all should work fine.
The workbench does not mind whether the repository is 8.1 or 8.0.
Regards
John
John (guest) wrote:
: Hi,
: I want to migration schema in SQL Server 7.0 to Oracle Server
: 8.0.5 rather than Oracle 8i. Does Oracle Migration Bench
1.2.4.3
: Beta support it? If yes what should I do to let bench know that
: I want to create Oracle Model in Oracle 8.0.5?
: Thanks in advance
: John
: Nov 25
Oracle Technology Network
http://technet.oracle.com
null
Similar Messages
-
Oracle 11g - Invoke JOB on another server?
Oracle 11g - Invoke JOB on another server?
===========================
I hope this is the right forum for this issue, if not let me know, where to go.
I posted on other forum, but I did not find resposnes there, so I am posting it here.
We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
1) We are loading table using PL/SQL.
2) This data will be consumed by Mainframe DB2 process (Read our table, format and calculate measures).
3) Return the result as another Oracle table (Push) with derived data from DB2.
There is a IBM JCL that read our table and return an Oracle table with calculated data.
Is it doable?
How do we invoke the IBM JCL from our Oracle 11g server upon loading the table (Step 1)?
Are there any metalink notes to address this situation?
Are there any alternate approach?
Thanks in helping us.Hi,
Since your talking about interfacing between Oracle and DB2 where 3 sequential steps are to be taken, I would recommend to use a UNIX shell script to kick off the seperate steps.
I have no experience whatsoever with DB2, so I can't tell you if you would be able to start a JCL ( DB2 Job ?? ) from within the oracle database.
Otherwise you would need a kind of polling mechanism where the DB2 database checks for a certain value (table value) existence in order to start its work
HTH
FJFranken -
Access denied to remote Oracle server from job
Hello
I have a LINKED ORACLE server to SQL Server 2008 R2 (SP1). All the linked tables work OK. I wrote a couple of procedures to transfer/update data between my DB on the SQL Server and the Oracle linked server tables.
When running a procedure from a query it works. But when putting the same procedure in a job (scheduled) it returns this error:
Access to the remote server is denied because no login-mapping exists. [SQLSTATE 42000]
How can I map logins in such a case to make this work? Or any other options?
Thx in advance
MihaGood Day,
Recommended Steps as follows:-
1.Create a credential under SQL Security tab
2.Create a Proxy(Operating system CMDExec) under SQL Server Agent Tab and link the credential to the proxy.
3.Create an SQL Agent Job with type - operating system(cmdExec)and Run as the proxy name or SQL Server Agent Service Account .
4.Use SQLCMD -S instancename -Q "Exec databasename.schemaname.storedprocedurename;" in the command box.
Consider the Security permission for the user credential.
Regards,
Sajith.
http://sqllive.wordpress.com/ -
ORACLE SERVER AND UNIX TP MONITOR-1
제품 : ORACLE SERVER
작성날짜 : 2002-05-17
====================================================================
Subject: Oracle Server and UNIX Transaction Processing Monitors - 1
=====================================================================
PURPOSE
This file contains commonly asked questions about Oracle Server and UNIX
Transaction Processing Monitors (TPMs). The topics covered in this article are
o What is a Transaction Processing Monitor (TPM)?
o What is the X/Open Distributed Transaction Processing Model?
o How does the Oracle Server works with TPMs?
o How should I position TPMs with my customer?
o What Oracle products must a customer purchase?
o Where can my customer purchase a TPM?
o Availability and packaging
Explanation & Example
What is a Transaction Processing Monitor?
=========================================
Under UNIX, a Transaction Processing Monitor (TPM) is a tool that coordinates
the flow of transaction requests between front-end client processes that issue
requests and back-end servers that process them. A TPM is used as
the "glue" to coordinate transactions that require the services of several
different types of back-end processes, such as application servers and
resource managers, possibly distributed over a network.
In a typical TPM environment, front-end client processes perform screen
handling and ask for services from back-end server processes via calls to the
TPM. The TPM then routes the requests to the appropriate back-end server
process or server processes, wherever they are located on the network. Through
configuration information, the TPM knows what services are available and where
they are located. Generally, the back-end server processes are specialized so
that each one handles one type of requested service. The TPM provides
location transparency as well and can send messages through the network
utilizing lower-level transport services such as TCP/IP or OSF DCE.
The back-end servers process the requests as necessary and
return the results back to the TP monitor. The TP monitor then routes
these results back to the original front-end client process.
A TPM is instrumental in the implementation of truly distributed processing.
Front-end clients and back-end processes have no knowledge of each
other. They operate as separate entities, and it is this concept that provides
flexibility in application development. Front-end and back-end processes are
developed in the UNIX client-server style, with each side optimized for its
particular task. Server functionality can be deployed in stages, which makes
it easy to add functionality as needed later in the product cycle. It also
makes it easy to distribute both the front-end and back-end processes
throughout the network on the most appropriate hardware for the job. In
addition, multiple back-end server processes of the same type might be
activated to handle increasing numbers of users.
What is the X/Open Distributed Transaction Processing Model?
============================================================
The X/Open Transaction Processing working group has been working
for several years to establish a standard architecture to implement
distributed transaction processing on open systems. In late 1991,
X/Open published the initial Distributed Transaction Processing (DTP)
model specification and defined the first of several interfaces that
exist between the components of the model. Subsequently, other publications
and a revised model specification have been published.
An important function of the TPM in the X/Open DTP model is the
synchronization of any commits and rollbacks that are required to complete
a distributed transaction request. The Transaction Manager (TM) portion
of the TPM is the entity responsible for ordering when distributed commits
and rollbacks will take place. Thus, if a distributed application program
is written to take advantage of the TM portion of the TPM, then it,
and not the DBMS, becomes responsible for enabling the two-phase commit
process. Article 2 has more detail on this model.
How does the Oracle Server work with TPMs?
==========================================
When a TPM is used without invoking an X/Open TM component to manage the
transactions, Oracle Server needs no special functionality. The transaction
will be managed by Oracle itself. However, when the TPM X/Open TM component
is used to manage the transaction, the Oracle Server, that is the Oracle DBMS,
acts as a Resource Manager--a type of back-end process. In the case of
TPM-managed transactions, the TM needs a way to tell the RMs about the stages
of the transaction. This is done by a standard, X/Open defined interface
called XA. Article 2 of of this document gives more information about both
the X/Open model and Oracle7's use of XA.
Because the XA interface provides a standard interface between the TM and the
resource manager, it follows that the TM can communicate with any XA-compliant
resource manager (e.g., RDBMS), and, conversely, that a resource manager can
communicate with any XA-compliant TM. Thus, the Oracle Server, beginning with
Oracle7, works with any XA-compliant TM.
How should I position TPMs with my customer?
============================================
There's been a great deal of confusion about the need for TPM technology. Some
software suppliers, most notably IBM, will assert that a TPM like CICS is a
necessary requirement for high volume OLTP. Other vendors will assert that
there is seldom a need for such technology. And yet others promote TPMs as
providers of higher transaction throughput.
From Oracle's standpoint, customers might choose TPM technology under any of
the following conditions:
1. For heterogeneous database access, especially for 2PC capability
This means that a TPM can be used to coordinate 2PC between Oracle
DBMS and any other XA-compliant database, such as Informix. This
does NOT provide SQL heterogeneity - SQL calls to Oracle DBMS may be
different than SQL calls to Informix. The TPM handles the routing,
communication, and two-phase commit portion of the transaction, but
does not translate one type of SQL call into another.
2. For transaction monitoring and workload control
The leading TPMs supply tools to actively manage the flow of
transactions between clients and servers and to load balance the work
load across all available processors on a network, not just on a
single multi-processor system. Some TPMs also have the ability to
dynamically bring up additional back-end services during peak work
hours.
3. For more flexible application development and installation
One of the key features of the DTP model is application modularity.
Modularity, that is, the decomposition of a large program into small,
easily defined, coded and maintained "mini-programs" makes it easy to
add new functionality as needed. Modularity also makes it much easier
to distribute the front-end and back-end processes and the resource
managers across hardware throughout a network.
4. For isolating the client from details of the data model
By using the service oriented programming model, the client program
is unaware of the data model. The service can be recoded to use a
different one with no change to the client. To get this advantage,
the application developer must explicitly code the server and client
to fit the service model.
5. For connection of thousands of users
TP Monitors, because of their three-tier architecture, can be used
to connect users to an intermediate machine or machines, removing
the overhead of handling terminal connections from the machine
actually running the database. See Article 4 for more information.
There are also several cases where TPM technology is not the right answer.
These include:
1. If the customer is simply looking for a performance improvement
The customer may have heard a theory that "higher performance
is possible for large scale applications only if they use a
TP monitor". First, no performance gain can be achieved for
existing applications; in fact, they won't even run under a TP
Monitor without recoding. Second, performance improvements have
only been documented for large numbers of users, and "large"
means many hundreds or thousands. Without a TP Monitor,
Oracle Server can handle several hundred users with its normal
two-task architecture and several times that using the Multi
Threaded Server. For more on performance, see Article 4.
2. If the customer has made large investment in his existing Oracle
applications
TP monitor applications must be designed from the ground up to take
advantage of TP monitor technology. Current Oracle customers will find
it difficult to "retrofit" a TP monitor to their existing applications.
The Multi Threaded Server, on the other hand, allows the use of
existing Oracle applications without change.
3. If the customer is committed to the Oracle tool set
Currently, none of Oracle's front-end tools (Oracle Forms, etc.) is
designed to work with TP monitors. It is possible to invoke a
TP Monitor by using user exits. However, the fact that the TP
Monitor model hides the data model from the client means that only
the screen display parts of Forms can be used, not the automatic
mapping from screen blocks to tables.
4. If the customer does not have a staff of experienced software engineers
This is still very young technology for UNIX. There is not a lot of
knowledge in the industry on how to build TP monitor applications or
what techniques are most useful and which are not. Furthermore,
integrating products from different vendors, even with the support
of standard interfaces, is more complex than deploying an integrated
all-Oracle solution. Because TP monitor technology is fairly
complex, we recommend that you let the TP monitor supplier promote
the virtues of their technology and differentiate themselves from
their competitors.
What Oracle products must a customer purchase?
==============================================
If your customer is only interested in building Oracle-managed TP Monitor
transactions, the only Oracle products required are the Oracle Server
and the appropriate Oracle precompiler for whatever language the
application is being written in--most likely C or Cobol. If TPM-managed
transactions are required, the Oracle7 Server with the distributed option
is also required. SQL*Net is optional because the TPM takes care of the
network services. Article 2 describes when you would choose to have the TP
Monitor manage the transactions.
Where can my customer purchase a TPM?
=====================================
There are many vendors offering the UNIX TPM products. (Oracle does not
relicense TPMs.) Information on the most well known products is provided
below:
The following support XA:
Product & Vendor FCS Known OS/Platform Ports
"TUXEDO System/T" 1986 UNIX SVR4 & SVR3: Amdahl, AT&T,
UNIX System Laboratories Bull, Compaq, Dell, Fujitsu, ICL,
190 River Road Motorola, Olivetti, Pyramid,Sequent,
Summit, NJ 07901 Sun, Toshiba, Unisys, NCR, Stratus
Other: IBM AIX, HP/UX, DEC Ultrix
"TOP END" 1992 UNIX SVR4: NCR
NCR Corporation
1334 S. Patterson Blvd.
Dayton, OH 45479
"ENCINA" 1992 IBM AIX, HP, Sun (SunOS and Solaris)
Transarc Corporation Other: OS/2, DOS, HP-UX, STRATUS
707 Grant Street (Depends on DCE)
Pittsburgh, PA 15219
"CICS/6000" 1993 AIX: IBM
IBM Corporation (Depends on DCE)
"CICS 9000" 1994 HP-UX
HP
The following do not currently support XA:
Product & Vendor FCS Known OS/Platform Ports
"VIS/TP" unknown unknown
VISystems, Inc.
11910 Greenville Avenue
Dallas, TX 75243
"UniKix" 1990 UNIX: ARIX, AT&T, NCR, Pyramid,
UniKix Sequent, Sun, Unisys
"MicroFocus 1993 SCO Unix, AIX
Transaction System"
Micro Focus
26 West Street
Newbury RG13 1JT
UK
There are also several third parties who are reselling the products listed
above.
In addition, Groupe Bull, Digital, Siemens-Nixdorf, and several other hardware
vendors are planning to redesign their proprietary TPMs to be XA-compliant and
suitable for use on UNIX systems.
Availability and Packaging
==========================
On what platforms is the XA Library available?
Oracle provides the XA interface with Oracle7 Server on all platforms that
support an XA-compliant TPM. Support for XA is included as part of the
Oracle7 Server distributed option and has no extra charge in and of itself.
Which version of XA does Oracle Server support?
Oracle7 Server supports the Common Application Environment (CAE) version of
XA, based on the specification published by X/Open in late 1991. It will
require that the TM also be at that level. This means Tuxedo /T version 4.2,
for example.
Oracle Server supports all required XA functions. There are some optional
features Oracle Server does not support, such as asynchronous operation.
None of those options affect application programming.
Page (2/4)
This file contains commonly asked questions about Oracle Server and UNIX
Transaction Processing Monitors (TPMs). The topics covered in this article are
o Oracle Server Working with UNIX TPMs
o TPM Application Architecture
The questions answered in part 2 provide additional detail to the information
provided in part 1.
Oracle Server Working with UNIX TP Monitors
===========================================
Do I need XA to use Oracle Server with TPMs? If I don't use it, what are
the consequences?
There are a number of real applications running today with Oracle Server and
TPMs but not using XA. To use a TPM with Oracle without using XA, the user
would write an "application server" program which could handle one or more
"services". For example, a server program might handle a service called
"debit_credit". The key requirement is that the entire transaction,
including the "commit work", must be executed within a single service. This
is the restriction which XA will remove, as we'll see later. Each
server process can serially handle requests on behalf of different clients.
Because a server process can handle many client processes, this can
reduce the total number of active processes on the server system,
thereby reducing resource requirements and possibly increasing overall
throughput.
When Oracle is used with a TPM in this mode, we call it an Oracle-managed
transaction since the transaction commit or rollback is done with a SQL
statement.
What is XA? How does XA help Oracle7 work with UNIX TPMs?
XA is an industry standard interface between a Transaction Manager and a
Resource Manager. A Resource Manager (RM) is an agent which
controls a shared, recoverable resource; such a resource can be
returned to a consistent state after a failure. For example, Oracle7 Server
is an RM and uses its redo log and undo segments to be able to do this.
A Transaction Manager (TM) manages a transaction including the
commitment protocol and, when necessary, the recovery after a failure.
Normally, Oracle Server acts as its own TM and manages its own commitment
and recovery. However, using a standards-based TM allows Oracle7 to
cooperate with other heterogeneous RMs in a single transaction.
The commonly used TPMs include a TM component for this purpose. In order to
use the TM capability of the TPM rather than Oracle7's own transaction
management, the application uses a transaction demarcation API (called TX)
provided by the TPM rather than the SQL transaction control statements (e.g.
"commit work"). For each TX call, the TM then instructs all RMs, by the
appropriate XA commands, to follow the two-phase commit protocol. We
call this a TPM-managed transaction.
The following picture shows these interfaces within a monolithic application
program model. This is the model most commonly described in the
DTP literature. We'll see later what the picture looks like when we add
Oracle7 and when we switch to a modularized client-server application
program model.
| |
| |
| Application Program (AP) |
| |
| |
| | | |
Resource Manager API | | | |
(e.g. SQL) -----|--|------------- | TX API
| | v | |
--------|------------- | |
| v | | v
---------------------- | | --------------------
| | | | | |
| Resource | | |<----->| Transaction |
| Managers | |--- | Manager |
| (RMs) | |<-------->| (TM) |
| |--- | |
| |<----------->| |
---------------------- XA --------------------
Interface
The XA interface is an interface between two system components, not
an application program interface; the application program does
not write XA calls nor need to know the details of this interface.
The TM cannot do transaction coordination without the assistance of
the RM; the XA interface is used to get that assistance.
How does the DTP Model support client-server?
The above picture was actually simplified to make it easier to explain
the role of XA. In a true distributed transaction architecture, there
are multiple applications, each with an Application Program, a Resource
Manager, and a Transaction Manager. The applications communicate by
using a Communication Resource Manager. The CRM is generally provided
as a component of the TPM. It includes the transaction information when
it sends messages between applications, so that both applications can
act of behalf of the same transaction. The following picture
illustrates this:
Client Application
| AP |
||| | |
SQL ||| | TX | CRM
||V V | API
-||-- ----- |
| |V | | | V
--|-- |<---| | -----
| V || | | | |
----- |<----| TM |<-->| CRM |
| || | |XA+ | |
| RMs |<-----| | -----
| | XA | | A
----- ----- | Server Application
| -----------------------------
| | AP |
| -----------------------------
| ||| | |
| SQL ||| | TX | CRM
| ||V V | API
| -||-- ----- |
| | |V | | | V
| --|-- |<---| | -----
| | V || | | | |
| ----- |<----| TM |<-->| CRM |
| | || | |XA+ | |
| | RMs |<-----| | -----
| | | XA | | A
| ----- ----- |
| |
| |
-------- |
/ |
/ |
/ |
Most TP Monitor products include both a TM and a CRM, and also provide
additional functions such as task scheduling and workload monitoring.
What is XA+? What does Oracle need to do to comply with it?
XA+ is an interface that lets the X/Open model actually be distributed
because it allows a communication resource manager to tell a TM on the
server that a message from a client just came in for a particular
transaction. Oracle is not currently planning to provide an X/Open
communication resource manager, so we don't have any plans right now
to do XA+. Version 2 of the DTP model paper from X/Open describes it.
The status of the current XA+ specification is "snapshot".
When would I choose an Oracle-managed transaction vs a TPM-managed
transaction?
Oracle Server is very efficient at managing its own transactions. If
the TPM manages the transaction, in general some additional overhead
will be incurred.
The two main reasons a customer might prefer to use a TPM-managed
transaction are as follows:
(1) He may need to update RMs from different vendors. Experience so far
has been that the most common case is wanting to update both Oracle and
a TP Monitor managed resource such as a transactional queuing service
in the same transaction (see Article 3).
(2) He may want to use the model of having several different services in
a transaction, even to the same database. For example, the
"debit_credit" service could be split into a "debit" service and a
"credit" service. This is a very attractive model, but this type of
modularity does exact a performance penalty (see Article 4).
Can I get a version of XA to run on Oracle Server version 6?
No, the XA functionality uses two underlying mechanisms in the Oracle
Server which are not available in version 6: two-phase commit and
session switching. The upi calls for these functions do not not exist
in version 6.
When would I use XA vs Oracle7 to coordinate all-Oracle distributed
transactions?
Generally speaking, Oracle Server should be used to coordinate all-Oracle
distributed transactions. The main reason for using XA to coordinate
transactions would be that you want to use the TP Monitor service-oriented
architecture. That is, you would like to construct an application built of
services and service requests in order to benefit from the modularity and
workload control such an environment provides.
TP Monitor Application Architecture
===================================
What might a TP Monitor application look like?
Most TPM applications will consist of two more more programs, where
there are front-end client programs which request services and back-end
server programs which provide services. In this case, the TPM supplies an
additional capability which is transactional communication. The client
describes the boundaries of the transaction, through the use of the TX API,
and the TPM relays that transaction information to each requested service.
The overall application structure generally looks like the following in the
client-server model. The "TP Monitor Services" box is not necessarily a
process. It could be one or more processes, or just libraries coordinating
through shared memory. Each client process and server process could be on
a different machine. Normally, the application server processes would be
connected to their Oracle Server processes using the IPC driver; the TPM
would be used to deliver messages between application client processes on
one machine and application server processes on another. However, the
application server processes could also be connected with the standard
Oracle SQL*Net to shadow processes on different machines. This might be
useful if one of the databases was on a machine which did not support TPMs.
|Application| |Application| |Application|
| Client 1 | | Client 2 | | Client 3 |
| | | | | |
\ TPM API | TPM API / TPM API
| |
| TP Monitor Services |
| |
| --------------------- |
| | Transaction Manager | |
---------------|---------------|---------------------
TPM API | | XA | XA | TPM API
| | inter- | inter- |
| | face | face |
| | | |
----------- | | -----------
|Application| | | |Application|
| Server 1 |--- ---| Server 2 |
| (Pro*C) | | | | (Pro*C) |
| SQL | SQL
| | | |
| Resource ----------- ----------- |
| Manager | | | | |
| | Oracle7 | | Oracle7 | |
| | Server | | Server | |
| | Process | | Process | |
| | | | | |
| ----------- ----------- |
| | | |
| ----------------------------------------------------- |
| | | |
| | SGA | |
| | | |
| ----------------------------------------------------- |
| |
Application client programs might be written in C and be linked with
TPM libraries. Alternatively, they could use a screen painter product.
Application server programs would be written in Pro*C or Pro*COBOL and
be linked with TPM libraries, the normal Oracle7 user-side libraries
and libxa.a. The Oracle7 Server process is the regular Oracle7 executable.
More complicated application architectures can also be constructed. Most of
the TPMs allow a server to become a client of another service, so you can
involve additional servers.
Could I use Oracle7's Multi Threaded Server as the SQL*Net connection in the
previous picture?
Yes, but that will not be needed in many cases. For example, both
application server processes in the previous picture could talk to a
single Oracle7 Server process through the Multi Threaded Server in the
previous picture. However, since the TPM architecture typically reduces
the number of server processes, the reduction in processes using Multi
Threaded Server may be less significant than in an architecture without
TPMs. If the application will use database links, however, then MTS will
be required.
How do I write an Oracle TP Monitor application?
The actual API used to talk to the TPM varies between vendors, so you need
to get the documentation from the vendor. However, all have a way to
indicate where a transaction begins and ends and a way to send a request
and receive a response from a client to a server. Some use an RPC model,
some use a pseudo-RPC model, and some use a send/receive model. The TX API
described earlier is a subset of the TPM API as defined by each of
the TPM providers.
The client program and server program might look something like the
following examples. We h (such as Tuxedo's
"tpacall
Reference Ducumment
---------------------hello,
the role is the same on all plattforms. the reports server takes requests for running reports, spawns an engine that executes the request. in addition to that, the server also provides scheduling services and security features for the reports environment.
regards,
the oracle reports team -
Error while importing dump file to Oracle server
Hi All,
I'm pretty new to Oracle and I need to do the following job:
- import data from dump file to Oracle server
- then export it into CSV format to load to our web system
Oracle dump file is called EXPDAT.DMP and it is placed in the default location, so no need to specify it. Here I'm trying to do the 1st step:
impdp SYSTEM/XXXXXX REMAP_SCHEMA=DATA01:SYSTEM
And then I'm getting the following errors:
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": SYSTEM/******** REMAP_SCHEMA=DATA01:SYSTEM
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-00959: tablespace 'K_DATA' does not exist
But tablespace 'K_DATA' exists in Oracle database (I've created it manually). What does it mean? Is it a permission issue? Or may be there is more simple way to accomplish my task? Please help me! Thank you!Create the user DATA01 in your database, with sufficient quota on tablespace K_DATA. DO NOT import another schema's objects into SYSTEM. If you must REMAP_SCHEMA to something other than DATA01, create a user other than SYSTEM to receive it.
-
How to export a table from one oracle server to another oracle server?
Hi experts,
Scenario : Copying table T1 from Server1 to Server2.
Can I follow any of the following two options. Please advise if these options would be feasible under the current scenario.
1) Create the same table T1 in Server2. Export the values of T1 in Server1 to an Excel sheet. Make the Excel sheet as source and import the values of the excel sheet to table T1 in Server2.
2) Use an ETL tool like Oracle Warehouse builder to extract and load the values in T1 in Server1 to T1 in Server2.
Can we schedule both option1 & 2 as a job in Oracle Warehouse Builder? The job will have 2 steps :-
a) Delete all rows in T1 (Server2).
b) Insert the values from T1(Server1) to T1(Server2).
Please advise.
Thanks,
DebashishCan you exactly explain a little bit more what is the actual requirement.
Just to kick off the things..
In case:
1) you just need to create a table based on another table in same schema. Its as simple as : create table table2 as (select * from table1)
2) table1 is on remote db then
create table table2 as (select * from table1@yourdblink)
3) Need to export and import table1 refer this link :
http://wiki.oracle.com/page/Oracle+export+and+import+?t=anon
4) Need to refresh table periodically either schedule a job or create materialized view refer to this link :
http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm
Choose an approach. Then try it and see what errors you get, In case you get errors search on internet for that error code and how to resolve that and in case need any help post it here. But key is understanding first what exactly your requirement is and which approach you need/want to follow. -
How to wake-up a Java Stored Proc at Oracle Server Startup
Hi,
I am writing a Java Stored Procedure responsible to
execute periodically (daily for example) a command (the
command and its arguments are prepared by the Java stored
procedure and they are date and time sensitive).
My questions are:
1. Is there any way that my Java stored procedure is
initially NOTIFIED (woke-up) when the Oracle server is
started ? I noticed that there is a built-in Java stored procedure in Oracle DB declared as:
"PROCEDURE notify_at_startup( user_schema VARCHAR2, classname VARCHAR2) ;"
Can this be used in any way for my purpose ? If yes, how ?
2. I can do the PERIODIC scheduling of execution of the
command using standard (SUN) java timer/Thread
primitives. Are there any Oracle Java classes/methods
which can be used instead for this scheduling ?
Thanks for any help/suggestions.
ArminiusI would look at two things.
1) Create a database level trigger that fires at server start up.
2) Define an Oracle Job that runs every xx minutes and restarts itself.
Chet West -
Dynamic column name for Oracle Server Procedure
hello,
May be it's not a right place for my question, but I hope that some of you can help me.
I have source table A that has data of the same kind in 62 fields, let's say employee count for 62 departments. I do some processing with these counts(sum(emp_count) of the same departments for different locations) and store these counts in the variables EC1, EC2, EC3 .. EC62.
Then I need to insert them into my table that has very simple structure let's say table B (dept_no Number(3),
emp_count Number(6))
I want to do a loop and use dynamic colunm EMP_COUNT, something like this:
FOR k in 1..62 LOOP
EMP_COUNT := 'EC'| |k;
IF EMP_COUNT <> O THEN
insert into B
VALUES ( K , EMP_COUNT);
END IF;
END LOOP;
I understand that I need to take a Value of my dynamic colunm EMP_COUNT. Is it possible to do in Oracle Server Procedure? Any idea?
Any help will be apreciated.
nullAfter having worked in other environments where you can manipulate data records with postitional parameters, Oracle can be frustrating because it demands the explicit use of field names in DML/Select statements. A way around this is to use DBMS_SQL or Dynamic Sql. I have used DBMS_SQL to create and execute dynamic statements with great success. Since you are creating, compiling, and running a dynamic block every time you execute your procedure, this is not recommended except in the rare instances when there is no better way around it.
Oracle8i introduces native dynamic SQL, an alternative to DBMS_SQL. Using native dynamic SQL, you can place dynamic SQL statements directly into PL/SQL blocks.
In most situations, native dynamic SQL can replace DBMS_SQL. Native dynamic SQL is easier to use and performs better than DBMS_SQL.
Example of Dynamic SQL<------------------------
BEGIN
-- bulk fetch the list of office locations
SELECT location BULK COLLECT INTO loc_array
FROM offices;
-- for each location, give a raise to employees with the given 'job'
FOR i IN loc_array.first..loc_array.last LOOP
dml_str := 'UPDATE emp_' | | loc_array(i)
| | ' SET sal = sal * (1+(:raise_percent/100))'
| | ' WHERE job = :job_title';
EXECUTE IMMEDIATE dml_str USING raise_percent, job;
END LOOP;
Look for more information on dynamic SQL by
searching for DBMS_SQL.
Good Luck
null -
How start XA log in Oracle Server 8.1.7
I'd like to activate Oracle Server XA log while using Oracle 8.1.7 oci
driver for
connecting to a 8.1.7 Server. The JDBC log is already active.
Oracle Documentation states that you must add in the openinfo string of
the TM
de following info: DbgFl=15LogDir=/...
Where can I put that info so weblogic instruct Server to log xa trans?
I've seen that jdriver config has an openinfo field and it does the job,
but I want to
get it with Oracle driver.
Thanks,
JosepHi Josep,
Could you write a small standalone program that can
activate XA log, and than post it here in the newsgroup?
We will try to come up with ideas how to turn it on for
WebLogic.
Regards,
Slava Imeshev
"Josep Blazquez" <[email protected]> wrote in message
news:[email protected]..
I'd like to activate Oracle Server XA log while using Oracle 8.1.7 oci
driver for
connecting to a 8.1.7 Server. The JDBC log is already active.
Oracle Documentation states that you must add in the openinfo string of
the TM
de following info: DbgFl=15LogDir=/...
Where can I put that info so weblogic instruct Server to log xa trans?
I've seen that jdriver config has an openinfo field and it does the job,
but I want to
get it with Oracle driver.
Thanks,
Josep -
I need to know how to remove a job through oracle enterprise manager console.
After a Windows 2003 Server O/S crash we tried to remove an oracle job which crashed along with Windows
The status of the job changed to "Deleting" but it does not do anything.
We tried to remove it again , restart the server but with no results.
Please help !Hi.
Use SQLplus.
Log in as the user that owns the job.
exec dbms_job.remove(:jobid);
Where :jobid is the numeric id of the job visable in OEM
Rgds
Ossi -
Dblink creation between sql and oracle server
Hi dears,
I need to create dblink between the sql and oracle server.
(For me the requirement is sql datas need to import in oracle database).
My questions is,
Without installting gateway is't possibale to get the sql data in the oracle server.
my database version is 11.2.0.3 64bit
Kindly let me know, Waiting for your suggestsion.
Regards
AthishAbout the Linked Server mechanism have a look at the MS Knowledge base article:
Article ID: 280106 - HOW TO: Set Up and Troubleshoot a Linked Server to Oracle in SQL Server
or
How to run a SQL Server 2005 Integration Services package as a SQL Server Agent job step Article ID : 912911
Regarding DG4ODBC and DG4MSQL, please have a look at our Support portal and look for the gateway master note:
Master Note for Oracle Gateway Products [Document 1083703.1]
It contains generic information how to connect to the foreign database
Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
as well as the functional differences between the Database Gateway for ODBC (Generic Connectivity) and MS SQL Server
Document 252364.1 Functional Differences Between Generic Connectivity and Database Gateways
Document 232482.1 Gateway and Generic Connectivity Licensing Considerations
as well as where to find the latest release and how to install and configure them. -
Cannot find NT Oracle Server DLL OCI.DLL
Hello
I am getting the following error when trying to execute a DS job from Designer in the error log.
"Cannot find NT Oracle Server DLL <OCI.DLL>. Please make sure that Oracle has been installed and the PATH variable points to the correct lib directories."
1. DS is on Windows
2. DS repo is sql server
3. Source is Oracle 10g db, target is Sql server db.
4. Oracle 32 bit full client is installed on the job server (10.2.0.1.0)
5. I have checked the SAP note 1295918 and I think it does not apply to the version of Oracle client we have and also it is already working in our SANDBOX environment, also our install location is NOT under the c:\program files\ folder
We are seeing this error only in our DEV DS box, we have a similar setup in the SANDBOX DS and that job executes successfully. I have compared the oracle client, DS and job server configurations between the 2 boxes and they are the same.
- SQLPLUS connection works from both the servers
- I am able to connect to the database and look at all the tables within DS designer from both the servers and import them into the DS repo
- No ORACLE_HOME was set when the installation was done. I created a ORACLE_HOME variable and assigned the install location, but still getting the same error
Any help is appreciated
Thanks
DineshDinesh,
When you added ORACLE_HOME to the environment, the environment settings were updated for the OS. However, the job server still had the old settings in memory. That is why you needed to restart the job server before DS would recognize ORACLE_HOME. -
On-line Oracle server backup ??
Hello,
I'd like to hear your experiences on backing up "on-line" ("hot")
Oracle server on Linux flatform. Is it easy to do it? Or
is there any backup software that makes the job easy?
Many thanks in advance.
Seung
nullSeung (guest) wrote:
: Hello,
: I'd like to hear your experiences on backing up "on-line"
("hot")
: Oracle server on Linux flatform. Is it easy to do it? Or
: is there any backup software that makes the job easy?
: Many thanks in advance.
: Seung
No it's not very difficult. Before backup a tablespace in
onlinemode you should know about your oldest archive log number,
if archiving is turned on.
1.) to do this enter in the server manager (command line mode)
the following statement:
archive log list;
2.) the next information, that is helpful is to know the
structure of the controlfile. To get the information, enter the
following statement in the server manager(command line mode):
alter database backup controlfile to <FILENAME> ;
3.) If you have only one tablespace, your backup procedure looks
like this: (server manager in command line mode)
alter tablespace <TABLESPACENAME> begin backup;
4.) then start a shell script wich includes a standard unix
backup-tool like tar or cpio to copy the file(s) of the
tablespace to another medium like a tape. You can get the
Filename(s) of the datafile with the following SQL-Satement:
select * from dba_data_files;
5.) After that you must tell oracle that
the onlinebackup of the/this tablespace is over. Enter the
following statement in the server manager (command line mode):
alter tablespace <TABLESPACENAME> end backup;
If you forget this step, you have problems to shut down the
database.
If you have more than one tablespaces, repeat the point 3.) to
5.) for every tablespace.
The last, but most important thing on backup up a database online
is to backup up the archive logs, if the archive log mode is
turned on. If you don't backup the archives, you have after
restoring the database an inkonsitent database. Be aware about
that.
If you will need an automated Onlinebackup, you should create a
little shell script for this activitis.
I hope that's the solution for your problem.
Lots of greetings
Robert Kromoser
null -
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
Hi All.
I have this request.
BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
We have jobs scheduled on BODS running smoothly and absolutely fine.
But to check, i am logging into the admin console and check for the jobs status.
I would like to have an email to be received from BODS after each job is finished.
It could succuessful. Or it could fail.
Whatsoever, i wish to receive an email alert as soon as a job is finished.
Can anyone advise me as to whether this could be made possible.
And if yes, how this could be done.
Thanks for your help in advance.
In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
Is there any option similar to that in BODS ?
Also would like to know :
how to use the smtp_to or mail_to functions ?
how to set up the smtp server for this ?
thanks
REgards
indu
Edited by: Indumathy Narayanan on May 31, 2011 3:47 PMHi.
Since am new to this BODS. I need some help.
I already have many jobs which are running absolutely fine.
And when a job runs, and finishes, am able to see the trace saying
e.g. :
Job_abc is completed successfully.
We got the smtp service activated for our test server.
and we hae a group email id.
I have put the details of the smtp server / ip address / and said apply restarted.
The i created a simple test script as below :
print (' Before email ' );
smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
' the job has failed', 0, 0);
print('After Email ');
It does send a email to as per smtp_to whatever email is specified.
But how to differentiate between a job success
And a job which has failed.
I wish to have a mail which says on the subject :
'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
==> IF it is a success
OR
'Job ' || job_name() ||' on ' || host_name() || ' has failed'
==> if it has failed
How to make the system identify, whether
to send a success message or a error message whatever
Could anyone advise.
thanks
indu -
Application is not working when changing of oracle server domain name
Hi friends
We decided to change oracle server domain name due to some reason .. we changed the domain name but application running on the other server cannot connect to this domain i don't know whats the problem . I change the enterprise manager ( emca -config dbcontrol db -repos recreate_) according to the new domain but some of the future not working like date,etc. can anyone help me how to rectify it plz.Mohd khalid wrote:
Hi friends
We decided to change oracle server domain name due to some reason .. we changed the domain name but application running on the other server cannot connect to this domain i don't know whats the problem . I change the enterprise manager ( emca -config dbcontrol db -repos recreate_) according to the new domain but some of the future not working like date,etc. can anyone help me how to rectify it plz.I am really confused that what's not working? What I have understood is that you recreated the EM repository. So where does "some of the future not working like date,etc." come into it? Are you checking date from EM ? Which application is not working, your application or EM or both or somethingn else? Tell us the complete version, error information and also post the output of
emctl status dbconsoleHTH
Aman....
Maybe you are looking for
-
Using Nokia 5800 GPS and accepting a call
Hi, I was wondering if there was a way to answer calls while the GPS is on on my Nokia 5800 Navigation Edition. Currently, when I use the GPS and someone calls, I tap the answer button, but I get a message that says not allowed. I was looking aroun
-
Error in UOM coversion...
Dear All, Unit of measure PAA is not convertible to stockkeeping unit PAC,An error has occurred during conversion of the quantity into the various units of measure ( stockkeeping unit/alternative units).The system cannot post the document.
-
Can't sign into revel from photoshop
I cannot sign into revel while in photoshop to sync my photos. I am using windows 7. The revel account ios active and able to be accessed from outside photoshop. How do I fix photoshop to link with revel again?
-
Uncheck Invoice receipt indicator in Purchase Order Local
We want to uncheck invoice receipt indicator in Purchase Order Local ( field BBP_PDSET-IR_IND) when a Shopping Cart is complete and PO Local is created automatically by system. We are using BADI BBP_DOC_CHANGE_BADI with Method BBP_PO_CHANGE but no ch
-
Change Default settings for iCal
My iCal seems to default to an all-day event when I try to create a new event this is annoying. Does anyone know how I can change the default settings? Thanks Keith