How to copy (running) instance

I need to get up on my computer with MSSQL Server 2005 SP2 an exact copy of running MS SQL Server 2005 SP1 instance (with system objs, accounts, etc.).
In the same LAN.
Well, not exact one but the one as close as possible...
And what exactly may I  mimick without interfering to existing SS2005 in production?
What is the best way to do it without invoking excessive (manual) work and problems? 
I see dozens of ways and I am still in doubt...
No ideal or straight-forward solution

The 'best' way is to BACKUP the Production database(s) and RESTORE them on the SP2 instance.
In order to have the Jobs, accounts, you will have to also BACKUP and RESTORE the msdb and master databases. Read these articles for more assistance.
Moving Server/Database/Logins
http://vyaskn.tripod.com/moving_sql_server.htm  Moving DBs
http://msdn2.microsoft.com/en-us/library/ms345408(en-US,SQL.90).aspx Moving system dbs 2005
http://www.support.microsoft.com/?id=314546 Moving DB's between Servers
http://www.support.microsoft.com/?id=221465 Using WITH MOVE in a Restore
http://www.sqlservercentral.com/columnists/cBunch/movingyouruserswiththeirdatabases.asp Moving Users
http://www.support.microsoft.com/?id=246133 How To Transfer Logins and Passwords Between SQL Servers
http://www.support.microsoft.com/?id=298897 Mapping Logins & SIDs after a Restore
http://www.dbmaint.com/SyncSqlLogins.asp Utility to map logins to users
http://support.microsoft.com/kb/274188 Troubleshooting Orphan Logins
http://www.support.microsoft.com/?id=240872  Resolve Permission Issues -Database Is Moved Between SQL Servers
http://www.sqlservercentral.com/scripts/scriptdetails.asp?scriptid=599 Restoring a .mdf
http://www.support.microsoft.com/?id=307775 Disaster Recovery Articles for SQL Server
http://www.support.microsoft.com/?id=320125 Moving a Diagram
http://www.sqlservercentral.com/scripts/contributions/1598.asp Script Roles and Permissions
http://sqljunkies.com/HowTo/B9F7F302-964A-4825-9246-6143A8681900.scuk Move Tables to New Files

Similar Messages

  • How to view running instance in OSB like we can see in BPEL process

    Hi,
    If someone does call the proxy service twice , How can I see the running instance of particular proxy service ? Like we can view BPEL instance in Enterprise Manager 11g and debug the problem.
    Thanks

    OSB is a stateless and hence you cannot view running instances in OSB.
    You can use Log, Report and Alert actions to debug your code. Each one has their specific usage. Please refer http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1080496
    You can also use OSB Monitoring to capture the number of messages that were handled by OSB proxy/business service and specific details of how many successful and errored out. Please refer http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/operations/monitoring.html
    Hope this helps.
    Thanks,
    Patrick

  • How to check running instance of a program, when its run by a job

    Hello,
    I have a report run by a job, twice a day. The thing is, the second run cannot start, if the first one hasn't finished (quite possible).
    So i would like in my report to check if an instance of this report is already running.
    I tried the solutions supplied by Rich Heilman with:
    'ENQUEUE_E_TRDIR' and 'ENQUEUE_ESINDX'
    i also tried locking an entry in table TVARV
    One more thing is, if the program stops with an error, or doesnt finish execution, it shouldnt need any manual reseting - i though of making an entry in tavrv and correcting it at the end of execution, but that would be the issue.
    Thanks for any help,
    Edited by: Michal Szczerbowski on Nov 17, 2008 3:08 PM

    Instead of locking the entry and leaving it unattented incase of error, you may give a try to implement solution like:
    1. Get the all running processes on the server by executing the FM TH_WPINFO.
    2. Check the Exporting table WPLIST with:
    WP_ITYPE = 4
    WP_REPORT = program_name_for_job
    If you find any entry in the table WPLIST that gives you the running instance of the that program in the job.
    Regards,
    Naimesh Patel

  • How i will run copy the file in oracle 7.3 ?

    how i will run copy the file in oracle 7.3.
    new version of oracle copy function is available in util_file but in oracle 7.3 this is not available.here i am using 7.3.
    please help
    Thanks
    Deepak S.

    The technique used to be to send messages from your procedure to a waiting shellscript listener using DBMS_PIPE. You would write a script (could be ksh, Perl, Ruby etc) on the server with a loop in which it connects to the database and waits for DBMS_PIPE messages. When it gets one, it executes the command that was contained in the message and loops around to continue waiting again.
    7.3 is really ancient though. If you're running it at all this far out of support it should really just be ticking over and not subject to new development.

  • How to find the instances that are running in a server?

    i have a Solaris server and previous engineer did a custom install of multiple instances of oracles.
    how can i find out the instances? such as instance name, port, database name, etc.
    thanks.

    user1035690 wrote:
    i have a Solaris server and previous engineer did a custom install of multiple instances of oracles.
    how can i find out the instances? such as instance name, port, database name, etc.
    thanks.For currently running instances:
    ps -ef | grep ora | grep pmonPort is for listener configuration and 1 listener can serve to multiple instances. You should check listener.ora file.
    Teymur Hajiyev
    Oracle 10g Certified Master
    http://teymur-hajiyev.blogspot.com
    http://dba.az

  • How to install several instances of the same application on a computer?

    Hej,
    I have an application in LV 2009, where I have created an installer. The installer installs to a directory called \Receiver relative to the Program Files directory. If I install this once to a computer, everything is OK.
    However, I want to install the same application twice on the same computer. There should be no conflicts between the two applications, since I can configure them to work on different directories and ports. But if I call the installer again, and selects another directory, nothing is installed and I get the message "Installation Summary - No software will be installed or removed". It seems like the installer ignores that I have selected another directory, and just uses the default directory, relative to the Program Files directory.
    Anyone knows the trick, how to install several instances on the same computer ?
    BR, Jan
    Jan Nielsen
    Freelance system analyst and LabVIEW programmer

    Hi Jan,
    This is so because each installer has a GUID that is used to check whether the application needs to be upgraded or not. (It's a Microsoft function).
    What you can do is create a new installer with a different GUID (copy the installer in the projects), and check witha  text editor whether this GUID has changed.
    But any specific reason you need two seperate installs? You can run the application twice with a specific INI token:
    allowmultipleinstances=True
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How do I run a JCA adapter when I am calling it from an EJB?

    How do I run a JCA adapter when I am calling it from an EJB? Do I need to create an EJB client and place it in a Client container? If my EJB and JCA adapter are deployed is there a way to call my EJB from the command line?
    Mike

    Hi. When you look at the code I provided for you in other thread you will see that connecting to adapter is done through JNDI lookup. The creation of the adapter is done in your J2EE server. Here is some code for you where you can find mapping from code to ejb-jar and orion-ejb-jar.
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
    version="2.1">
    <!--
    This file declares the interface (needs/promises) of the message-driven bean.
    The MDB requires:
    - a JMS queue (to receive messages from the client),
    - a JMS exception queue (to send undeliverable messages back to the source), and
    - a connection factory (to communicate with a JMS resource provider).
    Note that communication with the resource provider may be (and for this
    application is) via a JMS Connector rather than direct.
    -->
    <display-name>JMS Consume MDB - opp-ifs</display-name>
    <enterprise-beans>
    <entity>
    <description>Entity Bean ( BMP )</description>
    <display-name>EBEjbMecomsIFS</display-name>
    <ejb-name>EBEjbMecomsIFS</ejb-name>
    <local-home>EBEjbMecomsIFSLocalHome</local-home>
    <local>EBEjbMecomsIFSLocal</local>
    <ejb-class>EBEjbMecomsIFSBean</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>false</reentrant>
    <service-ref>
    <service-ref-name>service/interceptor</service-ref-name>
    <service-interface>javax.xml.rpc.Service</service-interface>
    <wsdl-file>META-INF/wsdl/MHS5_Jms_In_RS.wsdl</wsdl-file>
    <service-qname xmlns:ns="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5">ns:ESB_MHS5_Jms_In_RS_Service</service-qname>
    </service-ref>
    </entity>
    <message-driven>
    <display-name>JMS Consume MDB - MDB</display-name>
    <ejb-name>MDBEjbMecomsIFS</ejb-name>
    <!-- name of bean in deployment descriptor (including orion-ejb-jar.xml file) -->
    <ejb-class>MDBEjbMecomsIFSBean</ejb-class>
    <!-- bean's fully qualified Java class name -->
    <messaging-type>javax.jms.MessageListener</messaging-type>
    <transaction-type>Container</transaction-type>
    <!-- allow incoming messages to be included in transactions -->
    <!-- The ejb requires a connection factory to access an external resource (JMS). -->
    <ejb-local-ref>
    <ejb-ref-name>ejb/local/EBEjbopp_ifs</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>EBEjbMecomsIFSLocalHome</local-home>
    <local>EBEjbMecomsIFSLocal</local>
    <ejb-link>EBEjbMecomsIFS</ejb-link>
    </ejb-local-ref>
    <resource-ref>
    <!-- The resource's connection factory must be accessible at jndi location "java:comp/env/jms/QueueConnectionFactory". -->
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <!-- The resource's connection factory must implement the "javax.jms.ConnectionFactory" interface. -->
    <res-type>javax.jms.ConnectionFactory</res-type>
    <!-- container managed authorization -->
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <!--
    Declare that a global transaction is required when the onMessage method of the ejb named
    "MDBEjbName" is called. This will cause the app server to automatically initiate a
    global (XA) transaction before calling onMessage (actually, before even receiving the JMS
    message that triggers onMessage) and end the transaction after onMessage returns. The
    JMS Connector will automatically rollback the transaction if onMessage throws an
    exception. onMessage may also set the transaction to be "rollback only".
    Participating in global transactions requires that the connection factory provided in the
    activation spec (see the ConnectionFactoryJndiName property earlier in this file) must be
    XA-capable (it must implement the javax.jms.XAConnectionFactory interface).
    If this declaration is ommitted, then onMethod will not be part of any global
    transaction. In that case the connection factory provided in the activation spec must
    implement the javax.jms.ConnectionFactory interface.
    -->
    <container-transaction>
    <method>
    <ejb-name>MDBEjbMecomsIFS</ejb-name>
    <method-name>onMessage</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>EBEjbMecomsIFS</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    orion-ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNameSpaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/orion-ejb-jar-10_0.xsd">
    <enterprise-beans>
    <entity-deployment name="EBEjbMecomsIFS">
    <service-ref-mapping name="service/interceptor">
    <wsdl-location>http://on-poc62.ontw.alfa.local:7777/event/PilotOWSM/MustHavesScenario5/MHS5_Jms_In_RS?wsdl</wsdl-location>
    <service-qname localpart="ESB_MHS5_Jms_In_RS_Service" namespaceURI="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5"/>
    <port-info>
    <wsdl-port namespaceURI="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5"
    localpart="__soap_MHS5_Jms_In_RS_execute_ppt"/>
    <service-endpoint-interface>javax.xml.rpc.Service</service-endpoint-interface>
    <call-property>
    <name>javax.xml.rpc.service.endpoint.address</name>
    <value>http://on-poc62.ontw.alfa.local:7777/event/PilotOWSM/MustHavesScenario5/MHS5_Jms_In_RS</value>
    </call-property>
    <call-property>
    <name>javax.xml.rpc.soap.http.soapaction.uri</name>
    <value>execute</value>
    </call-property>
    <call-property>
    <name>javax.xml.rpc.soap.http.soapaction.use</name>
    <value>true</value>
    </call-property>
    <call-property>
    <name>javax.xml.rpc.soap.operation.style</name>
    <value>document</value>
    </call-property>
    <runtime enabled="owsm">
    <owsm init-home="/oracle/product/SoaAs/10.1.3/owsm/config/interceptors/C0003002"
    init-file="confluent.properties"/>
    </runtime>
    </port-info>
    </service-ref-mapping>
    </entity-deployment>
    <message-driven-deployment name="MDBEjbMecomsIFS"
    resource-adapter="OEMSJMSDRAopp-ifs"
    enabled="true" max-instances="10">
    <!--
    The ejb requires a connection factory implementing the "javax.jms.XAConnectionFactory"
    interface to be accessible at jndi location "java:comp/env/jms/QueueConnectionFactory". (see ejb-jar.xml and ....)
    A suitable connection factory is already accessible at jndi location "OEMSJMSDRASubcontext/MyXACF" (see oc4j-ra.xml)
    -->
    <resource-ref-mapping location="OEMSJMSDRASubopp-ifs/MyXACF"
    name="jms/QueueConnectionFactory"/>
    <!-- don't misspell this or you'll get an RP CF which doesn't work -->
    <!-- Required activation-spec properties. -->
    <!--
    ConnectionFactoryJndiName (string, no default)
    This should be the JNDI location of an RA connection factory.
    The JMS Connector will use this connection factory to create the JMS
    connection it uses to receive messages for this MDB's onMessage. If the
    exception queue is enabled (see UseExceptionQueue), the JMS Connector will
    also use a connection created from this connection factory for the production
    of messages to the exception queue.
    This connection factory must be compatible with the message domain(s). (For
    example, if the MDB is receiving messages from a queue, the connection
    factory should implement javax.jms.[XA]QueueConnectionFactory or
    javx.jms.[XA]ConnectionFactory.)
    For XA/non-XA considerations, see the <container-transaction> comments later
    in this file.
    -->
    <config-property>
    <config-property-name>ConnectionFactoryJndiName</config-property-name>
    <config-property-value>OEMSJMSDRASubopp-ifs/MyXAQCF</config-property-value>
    </config-property>
    <!--
    DestinationName (string, no default)
    This is JNDI location of the queue or topic from which messages to be
    delivered to the MDB's onMessage method should be received.
    The JNDI locations for RA destinations are defined in the
    oc4j-connectors.xml file.
    -->
    <config-property>
    <config-property-name>DestinationName</config-property-name>
    <config-property-value>OEMSJMSDRASubopp-ifs/MyQ</config-property-value>
    </config-property>
    <!--
    DestinationType (string, no default)
    This must be set to the type of the destination named by the above
    "DestinationName" property.
    The EJB 2.1 spec states that this must be set to either javax.jms.Queue or
    javax.jms.Topic. OracleGJRA also allows it to be set to
    javax.jms.Destination (which works for both queues and topics).
    -->
    <config-property>
    <config-property-name>DestinationType</config-property-name>
    <config-property-value>javax.jms.Queue</config-property-value>
    </config-property>
    <!--
    Other activation-spec properties.
    The following activation-spec properties supported by OracleGJRA are optional
    except where otherwise noted:
    -->
    <!--
    ListenerThreadMaxPollInterval (milliseconds, 5000)
    Listener threads "poll" to see if there is a message waiting to be processed.
    The more frequently this polling is performed, the faster (on average) a given
    listener thread can respond to a new message. The price for frequent polling is
    overhead - the resource provider must process a receive request each time it is
    polled.
    Oracle's JMS Connector implementation applies an adaptive algorithm which
    uses shorter polling intervals (high polling rates) during periods of activity
    (once activity is noticed) and longer polling intervals (lower polling rates)
    during periods of inactivity. The ListenerThreadMaxPollInterval property places
    an upper limit on the polling interval used by this adaptive algorithm.
    -->
    <config-property>
    <config-property-name>ListenerThreadMaxPollInterval</config-property-name>
    <config-property-value>5000</config-property-value>
    </config-property>
    <!--
    AcknowledgeMode (string, default = Auto-acknowledge)
    This should be set to Auto-acknowledge or Dups-ok-acknowledge. This
    controls the quality-of-service provided by listener threads which
    consume messages and call the MDB's onMessage method.
    MessageSelector (string, default = no message filtering)
    This is the selector expression used to filter messages sent to the
    MDB's onMessage method. (I.e., this is used as the messageSelector for
    the JMS sessions created for the listener threads.)
    SubscriptionDurability (string, default = NonDurable)
    For topics this should be set to Durable or NonDurable. (This should
    not be set for queues.) This controls the durability of the topic
    consumer used by the listener thread. When SubscriptionDurability is
    set to Durable (and DestinationType is javax.jms.Topic or
    javax.jms.Destination), the SubscriptionName property is required.
    SubscriptionName (string, no default)
    This property is required when SubscriptionDurability is Durable (and
    DestinationType is javax.jms.Topic or javax.jms.Destination). (In all
    other cases it is ignored.) This is the name used when creating the
    durable subscriber used by the listener thread. For a given JMS server,
    a given subscription name should be assigned to at most one MDB (which
    must have most one listener thread).
    ClientId (string, no default)
    If set, connection(s) used by the listener threads will be set to use
    this client ID.
    TransactionTimeout (milliseconds, default = 300,000)
    This limits the amount of time that the JMS Connector will wait for a
    message to arrive before exiting the current transaction. The
    transaction manager limits the amount of time a transaction can last
    (see transaction-timeout in transaction-manager.xml).
    TransactionTimeout should be set such that the transaction manager will
    not timeout the transaction during the onMessage routine unless
    something is wrong. For example, If the transaction mananager timeout
    is set to 30 seconds, and the onMessage routine will never take more
    than 10 seconds unless something is wrong, then this property could be
    set to 20 seconds (20000 milliseconds).
    EndpointFailureRetryInterval (milliseconds, default = 60,000)
    If an endpoint can not be processed (due to the app server WorkManager
    not accepting new work), it will be scheduled to be retried this many
    milliseconds later.
    ReceiverThreads (integer, default = 1)
    This sets the maximum number of listener threads to create for this
    endpoint. For queues, using more than one thread may be useful in
    increasing the rate at which messages can be consumed. For topics this
    value should always be 1. (Each listener thread gets its own session
    and TopicSubscriber. For durable subscribers it would be an error to
    have more than one subscriber with the same subscription name. For
    nondurable subscribers having more than one thread will not help because
    more threads translates into more subscribers which translates into more
    copies of each message.) See also: ListenerThreadMinBusyDuration
    UseExceptionQueue (boolean, default = false)
    When "UseExceptionQueue" is true:
    - Messages that would otherwise be discarded are sent to the
    exception queue. (Currently the only case where this happens is
    when the max delivery count is exceeded. See MaxDeliveryCnt
    property.) Rather than sending the original message directly to
    the exception queue, the following procedure is used:
    o Create a new message of the same type.
    o Copy the properties and body from the original message to the
    new message.
    o If the headers were copied, sending the message to the
    exception queue would cause most of them to be lost
    (over-written by the resource-provider). So instead,
    translate headers in the original to properties in the copy,
    assigning each header obtained via "getJMS{Header}" to
    property "GJRA_CopyOfJMS{Header}". Since
    javax.jms.Destination is not a valid property type, translate
    destination headers into descriptive messages.
    (Currently this same service is not provided for JMSX*
    properties, most notably the JMSXDeliveryCount property.)
    o If some part of the copy process (above) or augmentation
    process (below) fails, do not abort. Attempt to complete the
    rest of the procedure. (For Bytes/Map/Stream message types,
    this can mean that part of the body is copied and the rest is
    not.)
    o If the copy process is 100% successful, add a boolean property
    called "GJRA_CopySuccessful" with the value "true".
    o Add a string property called "GJRA_DeliveryFailureReason" which
    indicates why the message was not delivered.
    o If the MDB onMessage method generated an exception immediately
    prior to the delivery failure, add a string property called
    "GJRA_onMessageExceptions" which contains exception information.
    o Send the resulting message to the exception queue.
    Note that only one attempt is made to send the message to the
    exception queue. Should this attempt fail, the message will
    be discarded without being placed in the exception queue.
    See IncludeBodiesInExceptionQueue property for potential variations
    of the above procedure.
    - The ExceptionQueueName property is required.
    - In addition to being used for the primary destination, the
    connection factory specified by the ConnectionFactoryJndiName
    property will also be used for the exception queue. If the primary
    destination (specified by the DestinationName property) is a topic,
    then the connection factory must support both queues and topics.
    (I.e., the <connectionfactory-interface> [see oc4j-ra.xml] for the
    given connection factory must be either javax.jms.ConnectionFactory
    or javax.jms.XAConnectionFactory.)
    ExceptionQueueName (string, no default)
    This is the JNDI location of the javax.jms.Queue object to use as the
    exception queue. (See UseExceptionQueue property for information about
    the use of the exception queue.) This property is required when
    UseExceptionQueue is true, and ignored when UseExceptionQueue is false.
    IncludeBodiesInExceptionQueue (boolean, default = true)
    This controls whether or not messages sent to the exception queue will
    include a message body. (See UseExceptionQueue property for information
    about the use of the exception queue.) If many messages are sent to the
    exception queue during normal operation and the message body is of no
    use in the exception queue, then this property may be set false to
    improve performance. This property is ignored when UseExceptionQueue is
    false. There are two cases where this property does not apply:
    - If the original message did not have a message body, then the
    message sent to the exception queue will not have one either.
    - If a copy of the original message can not be created for any
    reason, then the original may be sent to the exception queue
    instead. This may result in a message body being sent to the
    exception queue.
    MaxDeliveryCnt (integer, default = 5)
    If a message has the "JMSXDeliveryCount" property and the value of that
    property is greater than MaxDeliveryCnt, then the message will be
    discarded (and not sent to onMessage). If the exception queue is
    enabled (see UseExceptionQueue), a copy of the message will be sent to
    the exception queue. If MaxDeliveryCnt is set to 0, no messages will be
    discarded. (Note that when an MDB responds to a message by throwing an
    exception, the message is not considered delivered and it may be
    redelivered. If the MDB might always respond to a given message by
    throwing an exception, and MaxDeliveryCnt is set to 0 to prevent the
    message from ever being discarded, the result may be an MDB stuck in an
    "infinite loop" - failing to process the same message over and over
    again.)
    -->
    <config-property>
    <config-property-name>MaxDeliveryCnt</config-property-name>
    <config-property-value>0</config-property-value>
    </config-property>
    <!--
    LogLevel (string, no default)
    This controls the level of detail of messages logged by the JMS
    Connector. These messages are primarily intended for debugging the
    JMS Connector itself, but may also be useful when debugging issues
    related to the use of the JMS Connector. This property should not be
    set in production code. (It should only be set temporarily for
    debugging purposes - specific log messages and log levels may be and
    will be added/removed/modified in future versions of the JMS
    Connector.) Currently the allowed values are:
    ConnectionPool
    ConnectionOps
    TransactionalOps
    ListenerThreads
    INFO
    CONFIG
    FINE
    FINER
    FINEST
    SEVERE
    WARNING
    OFF
    ListenerThreadMaxIdleDuration (milliseconds, default = 300,000)
    This is how long a listener thread which is not receiving any messages
    will be kept around. (At least one listener thread will remain as long
    as the endpoint is active.)
    ListenerThreadMinBusyDuration (milliseconds, default = 10,000)
    If a listener thread has just received a message, has not been idle (had to
    wait for a new message to arrive) at any point during the past
    ListenerThreadMinBusyDuration milliseconds, and the current number of
    listener threads for this endpoint is less than ReceiverThreads, then
    (application server willing) an additional listener thread will be created.
    ResUser (string, default = null)
    ResPassword (string, default = null)
    These properties allow a user/password to be passed to the resource
    provider. When neither of these properties are set, connections used for
    this MDB's inbound message handling (as well as for exception queue
    handling, if enabled) are created using the no-argument version of the
    create*Connection method. When one or both of these properties are set,
    they are passed to the create*Connection method as the user/password
    arguments. (If only one property is not set, then 'null' is used for that
    particular create*Connection argument.) The ResPassword property supports
    the standard password indirection options (e.g., using "->joeuser" to
    represent the password of "joeuser").
    Note that the commas used in many of the above default values and examples are
    included here for readability but can not be used in the actual activation spec.
    (I.e., integer/milliseconds values in the activation spec must not include
    embedded commas.)
    -->
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role>"
    impliesAll="true"/>
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>

  • ASM lost disk, rebuilt disk grp. No dbid, how to copy ctl file to ASM?

    Hi all,
    I'm trying to help out on what is turning out to be a real challenge.
    This looks to be Oracle 10.1.0.4.0 (version showed by rman and sqlplus).
    There is ASM...but it was set to redundancy of EXTERN, but not really external redundancy. This is a test box, and I guess they were just trying to use what disks they had....I dunno, it was set up long before I got here.
    Out of all the instances I've had to look at....for this one server, I have no DBID's documented.
    This is a HP-UX box....they replaced the bad ASM drive, and I rebuilt the DATADG disk group.
    RMAN settings...well, show all just gives defaults, as that I don't have a control file in place. This was, however, set up to autobackup control files and spfiles...but I don't know the DBID, and can't figure how to find the DBID....
    I did, however, find the snapshot controlfile...and hoping I could use that.
    I am, however, stumped as to how to copy this copy of the control file, into ASM.
    I have found and old pfile that I can use to start the instance. I have started it nomount with this.
    I looked at the parameter for control file and found:
    SQL> show parameter control_file
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string +DATADG/instance/control01.ctl
    , +DATADG/instance/control02.c
    tl, +DATADG/instance/control03
    .ctl, +DATADG/instance/control
    04.ctl
    So, I know where they are to go. This is such an old version, I guess there was no ASMCMD...I can't find that command.
    I'm thinking, if I could find a way to copy this snapshot of the control file onto ASM in the old places it was, I could startup up the database, and it would then be able to restore and recover with the RMAN backups?
    Any suggestions?
    cayenne

    Just a quick update on this.
    I was able to find a snapshot of the controlfile on disk....
    I went into asm and recreated the directory where the controlfiles were kept, and used rman to copy the snapshot controlfile to where the originals were kept:
    export ORACLE_SID=+ASM
    connect with sqlplus and do:
    SQL> alter diskgroup DATADG add directory '+DATADG/instance';
    Diskgroup altered.
    Then in RMAN:
    restore controlfile to '+DATADG/instance/control01.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
    restore controlfile to '+DATADG/instance/control02.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
    restore controlfile to '+DATADG/instance/control03.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
    restore controlfile to '+DATADG/instance/control04.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
    I then got out of RMAN...back into sqlplus and mounted the database instance:
    SQL> connect / as sysdba
    Connected.
    SQL> alter database mount;
    Database altered.
    Checking to see backups:
    RMAN> run {
    2> allocate channel vh1 type sbt_tape;
    3> restore database preview;
    4> }
    allocated channel: vh1
    channel vh1: sid=321 devtype=SBT_TAPE
    channel vh1: NMO v4.1.0.0
    Starting restore at 30-SEP-11
    Starting implicit crosscheck backup at 30-SEP-11
    Finished implicit crosscheck backup at 30-SEP-11
    Starting implicit crosscheck copy at 30-SEP-11
    Finished implicit crosscheck copy at 30-SEP-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    no files cataloged
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    33235 Incr 0 9G SBT_TAPE 00:23:51 11-AUG-11
    List of Datafiles in backup set 33235
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/system.413.573936825
    2 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/undotbs1.409.573936855
    3 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/sysaux.406.573936867
    4 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/users.432.573936895
    5 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/rcv_cat.437.573987643
    6 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/mgmt_tablespace.448.574422259
    7 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/mgmt_ecm_depot_ts.844.574422261
    8 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/oem_repository.533.574022071
    Backup Set Copy #1 of backup set 33235
    Device Type Elapsed Time Completion Time Compressed Tag
    SBT_TAPE 00:23:51 NO WEEKLY_INSTANCE_081111040003
    List of Backup Pieces for backup set 33235 Copy #1
    BP Key Pc# Status Media Piece Name
    34399 1 AVAILABLE server.003 fjmjmnmo_1_1
    34400 2 AVAILABLE server.003 fjmjmnmo_2_1
    34401 3 AVAILABLE server.003 fjmjmnmo_3_1
    34402 4 AVAILABLE server.003 fjmjmnmo_4_1
    34403 5 AVAILABLE server.003 fjmjmnmo_5_1
    Finished restore at 30-SEP-11
    released channel: vh1
    I think I'm ready to try to figure out the restore and recover parts now....
    I tried to recover the spfile from autobackup...but that didn't work:
    RMAN> restore spfile from autobackup;
    Starting restore at 30-SEP-11
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: sid=321 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.1.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=320 devtype=DISK
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110930
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110929
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110928
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110927
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110926
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110925
    channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110924
    channel ORA_SBT_TAPE_1: no autobackup in 7 days found
    recovery area destination: +RECOVERYDG
    database name (or lock name space) used for search: INSTANCE
    channel ORA_DISK_1: no autobackups found in the recovery area
    channel ORA_DISK_1: looking for autobackup on day: 20110930
    channel ORA_DISK_1: looking for autobackup on day: 20110929
    channel ORA_DISK_1: looking for autobackup on day: 20110928
    channel ORA_DISK_1: looking for autobackup on day: 20110927
    channel ORA_DISK_1: looking for autobackup on day: 20110926
    channel ORA_DISK_1: looking for autobackup on day: 20110925
    channel ORA_DISK_1: looking for autobackup on day: 20110924
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/30/2011 10:01:09
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Anyway...further along than I was.....
    Suggestions welcome....
    cayenne

  • How can i run 2 i tunes accounts on the same computer without songs duplicating?

    my wife and I both have ipods, how do you run an account each on the same computer without files syncing on both ipods/ libraries?

    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • How do I run Safari with a proxy on start up by command line?

    Hello,
    I am using a piece of software called Sahi to perform automated testing of websites. It uses a local proxy to accomplish this task, so it runs the browser with parameters needed so that that instance of the browser is running with the proxy settings. For some reason it's not correctly setup by default with Safari on the Mac. But it has a configuration file where you can set the command line parameters that it runs the browser with.
    So when I use Sahi in its default configuration, it doesn't work because the proxy is not configured, and I get an error ( http://sahi.co.in/forums/discussion/4607/sahi-doesn039t-work-with-safari-5-0-1-o n-macosx )
    So I need to set the proxy. When I set the 127.0.0.1:9999 proxy in the System Preferences it works. My question is how do I run Safari so that it provides the proxy settings as a command line option?
    This way I can add the command line option to the Sahi configuration file so that it runs Safari properly. I don't want to have the proxy settings system wide because I need other programs to work. I don't want to have the proxy settings set for Safari permanently because I also need to be able to run Safari normally outside of this special context.
    Any assistance would be appreciated.

    I should mention this is Safari 5.0.1

  • How to Patch Multiple Instances on same oracle home

    Hi All
    I Have 4 Instances running on server like below
    DEVSTAG /opt/oracle/product/10.2.0
    DEVUAT /opt/oracle/product/10.2.0
    DEVREVT /opt/oracle/product/10.2.0
    DEVREG /opt/oracle/product/11.2.0
    i want to Apply the patch set 11.1.0.7.1 to DEVUAT & DEVREVT Instances , Can someone please help .. i dont want this patch set applied to DEVSTAG Instance .. how to exclude that Instance from getting patched ?
    Thanks in advance .. hope my requirement is clear.

    Which patch are you referring to ? The database patching tool (opatch) generally applies any database patch to an ORACLE_HOME. You will need to follow the instructions in the README of the patch. If you need to only patch one instance, then you will have to create a dedicated ORACLE_HOME for each database (i.e they will not share database executables). If you share ORACLE_HOME amongst multiple instances, then you will have to patch all of them simultaneously.
    HTH
    Srini

  • How can i run a special name method of class?

    i dynamic created a obj
    and i don't know the method of class,
    so i use a String parameter as the method's name
    but how can i run the method?
    please give me a copy of code, thanks!

    import java.lang.reflect.Method;
    public class unknown{
         public static void main(String[] args){
              unknown thisObj = new unknown();
              Class thisClass = thisObj.getClass();
              // calling the method()
              try{
                   Class[] allParamatersType = {};
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj, null);
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
              // calling the method(int , string)
              try{
                   String firstValue = "Testing";
                   Class[] allParamatersType = { firstValue.getClass() };
                   Object[] values = { firstValue };
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj,values );
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
         public String method(){
              return "method() called";     
         public String method(String two){
              return "method(String) called";     

  • How can I run a vi developed with 7 Express?

    How can I run a vi developed with LabView 7 Express on another machine ? Do runtime versions exist ?

    Apparently, you want to run it on a machine that does not have LabVIEW installed.
    To make a standalone executable of your LabVIEW program, you need to have the Application builder (included in LabVIEW professional and higher, avaliable as an add-on for base and full).
    To run the application, the target system need to have the LabVIEW 7.0 runtime installed (available as a free download).
    There is also the LabVIEW Player. In this case you need to digitally sign your VIs and there are a few limitations. It is meant for for sharing code ideas and is not a viable substitute for the appl
    ication builder.
    Of course you could also get a second copy of LabVIEW.
    Some other options that would work in a very narrow set of situations: Read your LabVIEW license agreement. Under certain conditions you are allowed to install a second copy of LabVIEW on your home computer. If this is for personal educational use only and you qualify, you could also buy the LabVIEW student edition.
    LabVIEW Champion . Do more with less code and in less time .

  • HT1338 how to copy a external hard drive to  other or  copy songs from one to  another

    how to copy a external hard drive to  other or  copy songs from one to  another

    Don't understand exactly what you want to do. Can you restate your question?
    You posted in the OS 10.3 forum instead of the MacBook Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
    Also you show iOS 6.1.4 on your profile. iOS 6.1.4 only runs on a iPhone, not a MacBook Pro.
     Cheers, Tom

  • HT1660 How do I run itunes from external Hard drive?

    How do I run itunes from external hard drive. I only have ssd on PC and media is too large to fit

    You do not.
    iTunes, like all programs is installed on the C drive.
    You can store the media on another drive.
    Assuming you are moving an existing library from another computer:
    Move or Copy the ENTIRE iTunes folder from the old computer to the new computer and put it where you want it.
    Install iTunes using the default options.
    Hold <SHIFT> while launching iTunes.  It will prompt to create a new library or locate an existing library.
    Select the option to locate an existing library.
    Point iTunes to the iTunesLibrary.itl file in the iTunes folder that was moved from the old computer.

Maybe you are looking for