Instances and scripting
Oracle Version: 9i
Operating System: Windows 2000
I have 2 queries:
1.How do we to know how many instances are running and how to find out.
2. Can we write a script to take a backup.How do we to automate that in such a way that it will run at a particular time in the week automatically and take the backup of the database?Is it possible in Windows.
Yachendra
see the forums in www.oracle-base.com
Similar Messages
-
Tools and Script for stopping and starting SAP instances in the landscape
Hi All,
All our SAP system are on Windows 2003 and very few on Windows 2000.
Is there any possiblity for having a script which will stop and start SAP on all the instances in the Landscape from a central system?
Lets say we have some 200 SAP instances and we need to down all the instances for Windows patching.
In this case, we need to manually take remote desktop to stop and start all the instances one by one.
Also, do we have any 3rd party automated tools for this purpose?
Regards,
Siva.Hi Siva,
You can configure ACC for your system landscape.
http://help.sap.com/saphelp_nwmobile71/helpdata/en/83/43cd574af1489aadd4d71b2f47b77d/content.htm
Thanks
Atul -
Failed to create vuser and Failed to create an instance of script
Hi
I have a parent script of type web service which would call 5 child scripts . 3 child scripts are webservice and 2 child scripts are of web test.
However when the function call goes to the child script (web test), the following exception is being thrown.
Any idea of how to get rid of this?
error creating vuser for child script
oracle.oats.scripting.modules.basic.api.exceptions.ScriptCreationException: Failed to create instance of script "TestUSNACHABankFormat".
at oracle.oats.scripting.modules.basic.api.exceptions.ScriptCreationException.createFailedToCreateScriptInstance(ScriptCreationException.java:75)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.createScript(IteratingVUser.java:281)
at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.createIteratingVUser(IteratingAgent.java:602)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.createCallableScript(IteratingVUser.java:1146)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.getSpecialVariableImpl(IteratingVUser.java:1071)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.getSpecialVariable(IteratingVUser.java:994)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.getScriptAsset(IteratingVUser.java:1163)
at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getScript(IteratingVUserScript.java:431)
at script.run(script.java:34)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:320)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:340)
at oracle.oats.scripting.modules.basic.api.internal.CallableScript.run(CallableScript.java:182)
at script.run(script.java:61)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:320)
at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:726)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getVariables(IteratingVUserScript.java:482)
at script.<init>(script.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.createScript(IteratingVUser.java:279)
... 14 moreHello
I would go around that problem :
at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getVariables(IteratingVUserScript.java:482)
Indicating something wrong with a GetVariables() function.
Any specific java code in your script?
Not much ideas though...
JB -
Easily fixing parameters for instance creation script
H all,
In the classical instance creation scripts numerous parameters are repeated even if they are similar. For example, the directory into which saving the different tablespaces is often the same. Also i'm looking for passing them as parameters. My first tries give the following:
-> In the .bat launching the creation:
set MY_DB_USER=sys
set MY_DB_PWD=change_on_install
set MY_DB_NAME=DragNFly
set ORACLE_SID=DragNFly
set MY_DB_CREATION_SOURCE=F:\Oracle\oradata\Instance_creation_scripts
set MY_DB_CREATION_DESTINATION=E:\Oracle_DragNFly
set MY_ORACLE_BIN=F:\oracle\bin
set MY_ORACLE_HOME=F:\oracle
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\bdump
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\cdump
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SIDD%\create
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\udump
mkdir %MY_DB_CREATION_DESTINATION%\%ORACLE_SID%
%MY_ORACLE_BIN%\oradim.exe -new -sid %ORACLE_SID% -startmode m
%MY_ORACLE_BIN%\oradim.exe -edit -sid %ORACLE_SID% -startmode a
%MY_ORACLE_BIN%\orapwd.exe file=%MY_ORACLE_HOME%\Database\PWD%MY_DB_NAME%.ora password=%MY_DB_PWD%
%MY_ORACLE_BIN%\sqlplus /nolog connect %MY_DB_USER%/%MY_DB_PWD% @%ORACLE_SID% as sysdba
%MY_ORACLE_BIN%\sqlplus /nolog @%MY_DB_CREATION_SOURCE%\StartCreation.sql
-> Then in the first sql file, fixing all the variables and calling the other ones:
DEFINE MY_DB_USER=SYS
DEFINE MY_DB_PWD=change_on_install
DEFINE MY_DB_NAME=DragNFly
DEFINE MY_DB_SID=DragNFly
DEFINE MY_DB_CREATION_DESTINATION=E:\Oracle_DragNFly
DEFINE MY_DB_CREATION_SOURCE=F:\Oracle\oradata\Instance_creation_scripts
DEFINE MY_ORACLE_BIN=F:\oracle\bin
DEFINE MY_ORACLE_HOME=F:\oracle
connect &&MY_DB_USER/&&MY_DB_PWD as SYSDBA
-- # The following files have to be stored in the #
-- # same repertory as the present file #
@@CreateDBdb &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBtbs &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBcat &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@postDBcreate &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBuser &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
exit;
-> Finally one example of use in CreateDB.sql is:
connect &&1/&&2 as SYSDBA
set echo on
spool &&5\&&3\Create&&3.db.log
startup nomount pfile="&&6\init_DB.ora";
CREATE DATABASE &&3
MAXINSTANCES 1
MAXLOGHISTORY 1
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE '&&5\&&3\system_&&3.01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE &&3._TMP TEMPFILE '&&5\&&3\temp_&&3.01.dbf' SIZE 1500M REUSE
UNDO TABLESPACE "&&3._UNDO" DATAFILE '&&5\&&3\undo_&&3.01.dbf' SIZE 500M REUSE
CHARACTER SET WE8ISO8859P1
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 ('&&5\&&3\redo_&&3.01.log', '&&5\&&3\redo_&&3.01bis.log') SIZE 102400K,
GROUP 2 ('&&5\&&3\redo_&&3.02.log', '&&5\&&3\redo_&&3.02bis.log') SIZE 102400K,
GROUP 3 ('&&5\&&3\redo_&&3.03.log', '&&5\&&3\redo_&&3.03bis.log') SIZE 102400K;
spool off;
As you can see a first problem is that i have to set the variables the first time in the .bat and a second time in the first .sql. I don't know how to use an unique file for setting all the variables i need.
Second difficulty is: fixing names and directories is a first step but i would like to fix all the different size values in this same file. The goal is to have only one file with dozen of values to change before creating new instances instead of checking all the different parameters inside of the different files.
What is your mind on this?
Probably there are better examples that i don't found?
Regards,
TifOne error i didn't suspect -> don't using SID with lowercase and uppercase in the name.
Thing i've forgotten to say: variables have to be set both in the .bat and the first .sql but they have to match too with values in the init.ora. That why i would like to simplify all these declarations with unifying them into a single file.
If somebody can help me, please
Tif -
Passing variables from .bat to .sql in instance creation scripts
Hi all,
In the classical instance creation scripts numerous parameters are repeated even if they are similar. For example, the directory into which saving the different tablespaces is often the same. Also i'm looking for passing them as parameters from the .bat launching the instance creation. My first tries give the following:
-> In the .bat launching the creation:
set MY_DB_USER=sys
set MY_DB_PWD=change_on_install
set MY_DB_NAME=DragNFly
set ORACLE_SID=DragNFly
set MY_DB_CREATION_SOURCE=F:\Oracle\oradata\Instance_creation_scripts
set MY_DB_CREATION_DESTINATION=E:\Oracle_DragNFly
set MY_ORACLE_BIN=F:\oracle\bin
set MY_ORACLE_HOME=F:\oracle
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\bdump
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\cdump
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SIDD%\create
mkdir %MY_ORACLE_HOME%\admin\%ORACLE_SID%\udump
mkdir %MY_DB_CREATION_DESTINATION%\%ORACLE_SID%
%MY_ORACLE_BIN%\oradim.exe -new -sid %ORACLE_SID% -startmode m
%MY_ORACLE_BIN%\oradim.exe -edit -sid %ORACLE_SID% -startmode a
%MY_ORACLE_BIN%\orapwd.exe file=%MY_ORACLE_HOME%\Database\PWD%MY_DB_NAME%.ora password=%MY_DB_PWD%
%MY_ORACLE_BIN%\sqlplus /nolog connect %MY_DB_USER%/%MY_DB_PWD% @%ORACLE_SID% as sysdba
%MY_ORACLE_BIN%\sqlplus /nolog @%MY_DB_CREATION_SOURCE%\StartCreation.sql
-> Then in the first sql file, fixing all the variables and calling the other ones:
DEFINE MY_DB_USER=SYS
DEFINE MY_DB_PWD=change_on_install
DEFINE MY_DB_NAME=DragNFly
DEFINE MY_DB_SID=DragNFly
DEFINE MY_DB_CREATION_DESTINATION=E:\Oracle_DragNFly
DEFINE MY_DB_CREATION_SOURCE=F:\Oracle\oradata\Instance_creation_scripts
DEFINE MY_ORACLE_BIN=F:\oracle\bin
DEFINE MY_ORACLE_HOME=F:\oracle
connect &&MY_DB_USER/&&MY_DB_PWD as SYSDBA
-- # The following files have to be stored in the #
-- # same repertory as the present file #
@@CreateDBdb &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBtbs &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBcat &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@postDBcreate &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
@@CreateDBuser &&MY_DB_USER &&MY_DB_PWD &&MY_DB_NAME &&MY_DB_SID &&MY_DB_CREATION_DESTINATION &&MY_DB_CREATION_SOURCE &&MY_ORACLE_BIN &&MY_ORACLE_HOME
exit;
-> Finally one example of use in CreateDB.sql is:
connect &&1/&&2 as SYSDBA
set echo on
spool &&5\&&3\Create&&3.db.log
startup nomount pfile="&&6\init_DB.ora";
CREATE DATABASE &&3
MAXINSTANCES 1
MAXLOGHISTORY 1
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE '&&5\&&3\system_&&3.01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE &&3._TMP TEMPFILE '&&5\&&3\temp_&&3.01.dbf' SIZE 1500M REUSE
UNDO TABLESPACE "&&3._UNDO" DATAFILE '&&5\&&3\undo_&&3.01.dbf' SIZE 500M REUSE
CHARACTER SET WE8ISO8859P1
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 ('&&5\&&3\redo_&&3.01.log', '&&5\&&3\redo_&&3.01bis.log') SIZE 102400K,
GROUP 2 ('&&5\&&3\redo_&&3.02.log', '&&5\&&3\redo_&&3.02bis.log') SIZE 102400K,
GROUP 3 ('&&5\&&3\redo_&&3.03.log', '&&5\&&3\redo_&&3.03bis.log') SIZE 102400K;
spool off;
As you can see a first problem is that i have to set the variables the first time in the .bat and a second time in the first .sql. I don't know how to use an unique file for setting all the variables i need.
Second difficulty is: fixing names and directories is a first step but i would like to fix all the different size values in this same file. The goal is to have only one file with dozen of values to change before creating new instances instead of checking all the different parameters inside of the different files.
Third problem: variables are not transmitted to the init.ora. I think that it's possible to generate it using template and the defined variables, but i don't try for the moment.
What is your mind on this?
Probably there are better examples that i don't found?
Regards,
Tifthe problem is nothing your showed. did you see a security warning that you ignored?
to test, if that's the problem go here and adjust your security settings: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.ht ml
if that fails, upload your files to a server and confirm everything works. then start working on your local configuration. -
How to remove Catalyst stylesheets and scripts
How do I stop BC from inserting stylesheets and scripts into my layouts? I have been working on catalog and product layouts and templates but BC continues to insert scripts & stylesheets that I do not want to include, particularly borders and margins.
I know about removing all code leaving it blank from the /StyleSheets/ModuleStyleSheets.css
But here is an example of a product large which includes a number of these which effect the layout
<link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
<script type="text/javascript">var jslang='EN';</script>
<link rel="stylesheet" href="/CatalystStyles/Box.css" type="text/css" media="screen" />
<script type="text/javascript" src="/CatalystScripts/Java_OnlineShopping.js"></script>
<script type="text/javascript" src="/CatalystScripts/Java_Cookies.js"></script>
<script type="text/javascript" src="/CatalystScripts/Java_Box.js"></script>
Any suggestions would be greatly appreciatedWhile I don't recommend using the Cloud Service you are talking about to speed up the site (you can just combine and minify your styles and scripts for faster performance instead) I think your best bet is to copy the contents of ModuleStylesheets.css above the CSS rules in your main CSS file that styles your site. Then, delete all the CSS rules in ModuleStylesheets.css so that it's an empty file. BC will still render the ModuleStylesheets reference in the HEAD above your script but it will only be quick connection to the server to return 0kb (an empty file).
Since you moved your modulestylesheet css to your main css file (and it's referenced after the Cloud Service script) then you should be good to go.
Again, though I recommend not using that cloud service and just combine all your CSS and scripts into two files, one for all your CSS and one for all your js and then making sure all your images are optimized on the site and where there are instances of images that have a fixed width and height you can utilize sprite sheets so that a lot of your images are stored in a single image.
Another option is to pay for the super cheap Amazon S3 and upload your main css file and your single minified and combined javascript files to there and update your page template to reference the CSS and JS on Amazon S3 so it's essentially like a CDN which will speed things up as well. -
Custom Report using Metrics of Instance and Server
Hello
I need to create a custom report using different instance and server metrics like:
File System Space Available
Tablesapaces
Database Spaces usage
Sort in Memory
library Cache Hit
Data Dictionary Hit
Buffer Cache Hit
I already made the report, but I can´t change the size of the graphic (for a better presentation on my report)....
Do you know how can I change the size of the report?
I think that I´m using a "metric" so for that reason I Can´t change the size ... :(I am currently having a problem with this report and drilldown to KSB1, the cost centers selected int S_ALR_87013611 are not transferring to KSB1 and thus all the cost centers come up in the call to KSB1, are you experiencing this problem? I am on V4.7
-
How to find name of report if I know name of instance and location of instance in Output File Store
Hello all,
can somebody help me to find name of the report if I know name of report instance and also location of instance in Output File Store. It should be done via Query Builder.
It is ...rpt file as output from Crystal Reports. I tried few commands in Query Builder but usually they finished with timeout error.
Could you help me and send specific command? Or way how to change timeout of Query Builder?
Thanks.
matusHello all,
We finally found solution.
We knew that file is located on path .../Output/a_145/009/002/133521/~ce10c.....9332.rtf
This file has more than 2 GB. We tried to find which report is related and provide necessary actions.
As I mentioned we still failed due to timeout error - There was an error retrieving data from the server: CMS operation timed out after 9 minutes.
So we tried to use our testing environment. We started there QueryBuilder and there we successfully tested that we found details about files from FileStore /like Name of the report in Launch Pad, CUID, ...
SELECT SI_NAME, SI_CUID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/a_148/020/000/5268/'
or
SELECT * FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/ a_148/020/000/5268/'
Best regards,
matus -
Multiple instances and mail config
Maybe I dont understand the right concept of multiple
instances but what I did was the following:
Setup up an instance for each domain I have running as a
VHost on apache.
What I was trying to accomplish is the failover of any one
domain and also to use separate mail settings for each domain.
But this is where I seem to have misunderstood the concept of
multiple instances, is it not possible to use a different smtp
server for each domain? When my forms for each domain generates an
email I want the email to originate from that domain not the main
one setup in CF...
ThanksYour on the right track.
Set up say 4 websites (virtual hosts) eg www.mydomain1.com,
www.mydomain2.com etc
Set up 4 cf instances if you have 4 domains, maybe call them
mydomain1, mydomain2 etc
Using the Web Server configuration tool, config the cf
instance mydomain1 to virtual host mydomain1, cf instance mydomain2
to VH mydomain2 etc
The website should now be working using their own Cf
instances.
Go into the CF Admin, scroll to the bottom of the left menu
and you should see Instance Manager
Clicking on this should either reveal the 4 cf instances or
you may have to add them (should be a button)
Once you see all 4, you should be able to click on the admin
for each individual instance and change the smtp server as
appropriate.
This won't give you failover though, if a CF instance goes
down, that site is gone. Clustering is the way to give failover and
you can achieve this fairly easily.
Expanding on the above example, you would create 8 CF
instances eg mydomain1-1 mydomain1-2, mydomain2-1 mydomain2-2.
Create 4 clusters eg mydomain1cluster, mydomain2cluster etc
In the CF Administrator Add mydomain1-1, mydomain1-2
instances to mydomain1cluster etc
Using the Web Server configuration tool, config the cluster
mydomain1cluster to virtual host mydomain1 etc
each domain should now be using 2 cf instances, you will be
able to down on of those instances the the site will continue
working.
Back in the instance manager under CF Admin, you should now
have 8 instances - config mydomain1-1, mydomain1-2 to the
appropriate smtp server etc
The above is for CF MX 6 onwards too, not sure about previous
versions.
I think thats what your after? I've skimmed over some parts
above in relation to the clustering, but there's a handy doc
floating around on the web by Herrlich & Ramuschkat that will
guide you through it.
BTW, those instances can sit on multiple physical servers for
hardware redundancy. Depending on how many domains you have and the
power of your machines, this is a preferred way to go although
expensive due to multiple CF licences -
IPad mini now terrible to use, apple support no help because warranty is up. All cause by new ios8 update, wifi issues, many apps no longer work, apps that do work now crash regularly and sometimes take several instances and reboots to even open.
need help uninstalling ios8 and going back to 7 where things worked please.
-
how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.
Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.
-
Can you have both mappings (direct mapping in the graph) and scripting functoid in the same map?
AnonymousHi,
Yes, direct mapping and scripting functoid can be used in the same map.
In case of complex map and lot of direct mapping it is advisable to make use of more than 1 pages, just for better readability.
Pages are a great way of dividing your map into smaller, more manageable blocks. The functionality of the map is in no way influenced with how many pages you have and what functionality goes into what pages.
You can learn more about Biztalk Maps by following the links below:
1) http://www.informit.com/articles/article.aspx?p=1752306
2)
http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&cad=rja&uact=8&ved=0CEMQFjAF&url=http%3A%2F%2Fbiztalkevents.files.wordpress.com%2F2013%2F03%2Fobid-biztalk-mapping-patterns-and-best-practices.pptx&ei=L2U3VJHrApHmauiLgZgD&usg=AFQjCNHnYSa-ynxUKRRdr14LcB85brSNUw&bvm=bv.76943099,d.d2s
3)
http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CDMQFjAD&url=http%3A%2F%2Fwww.slideshare.net%2FSandroPereira3%2Fbiztalk-server-basics-principles-of-maps&ei=L2U3VJHrApHmauiLgZgD&usg=AFQjCNG6iJRePcbrHr9CS2_apBuNAzYR0w&bvm=bv.76943099,d.d2s
Hope this helps.
Rachit
Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem -
Hello all,
yesterday I got one task in that I have to stored procedure for getting host name, host instance and status of that host is it running or stopped.
any body knows where exactly, In which table this details are there in BizTalk databases.
thanksStatus of the host instance is not stored in the SQL database for you to query the status using stored procedure. You have to either use Powershell or WMI to get the status.
In SQL, following table contains the details about the host like Name, LoginName, IsDisables etc but status of the host instance is not stored in the database.
SELECT * FROM BizTalkMgmtDb..adm_HostInstance
Powershell to get the status:
http://axonolympus.nl/?page_id=186&post_id=969&cat_id=6&lang=en
WMI to get the status:
https://msdn.microsoft.com/en-us/library/aa561820.aspx?f=255&MSPPError=-2147217396
https://msdn.microsoft.com/en-us/library/aa578621.aspx
Regards,
M.R.Ashwin Prabhu
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
How to attach a document to an instance and to an email
I've a requirement to attach a document to an instance and attach the same to an email. Any suggestions??
I've one suggestion see this code below:
Attach in Instance:
Fuego.Lib.Attachment attach ;
attach.create(contents : attachBinary, name : attachname, description : attachdescription);
Attach in Email :
ProcessInstance.attachments[] attachments;
foreach (a in ProcessInstance.attachments) {
attachments.extend(source : a.contents, fileName : a.fileName);
Mail reminderEmail;
reminderEmail = Mail();
reminderEmail.subject = "xxxx";
reminderEmail.from = "[email protected]";
reminderEmail.message = "xx";
reminderEmail.attachments = attachments;
MailSender sender;
sender = MailSender(mail : reminderEmail);
sender.send(implname : "mail"); -
XML Validation using java for SQL Injection and script validation
I have an input coming from xml file.
I have to read that input and validate the input against sql injections and scripts.
I require help now how to read this xml data and validate against the above two options.
I am a java developer.
in this context what is marshelling?http://www.ibm.com/developerworks/library/x-javaxmlvalidapi.html?ca=dgr-lnxw07Java-XML-Val
http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html
The following code validates the xml against a xml schema
// define the type of schema - we use W3C:
String schemaLang = "http://www.w3.org/2001/XMLSchema";
SchemaFactory factory = SchemaFactory.newInstance(schemaLang);
Schema schema = factory.newSchema(new StreamSource("sample.xsd"));
Validator validator = schema.newValidator();
// at last perform validation:
validator.validate(new StreamSource("sample.xml"));Message was edited by:
haishai
Maybe you are looking for
-
iTunes on our computer has at least 2000 songs and I previously went through it and made a playlist of about 700 of songs that I like, so everytime I wanted to add the songs that I like onto another device I would not have to go through 2000 songs ag
-
Install Windows XP in Leopard WITHOUT Boot Camp - No More Disk Error
For those of you having problems installing Windows XP in Boot Camp because of the formatting screen never showing up and then the system restarting with the dreaded: Press any key to boot from CD ..... Disk Error Press any key to restart I too spent
-
Changing the Public Folder name or owner's name of a MacBook running 10.5
Hi Does anyone know how or if, I can change the name of my Public Folder or alternatively change my MacBook's owner name? It seems crazy that after years of releasing software Apple would default a folder name to the full name of the owner with no sh
-
Set .doc as Default File Type
How do I set to save my files as .doc rather then .pages by default? I choose to save as, and choose save copy as a .doc file. After that point, every time I press save, It brings the save as dialog box up again rather then saving over the .doc file.
-
After installing bi,how to access schema
Hello, I have installed OBIEE 11g on my m/c. I wanted to know how do i access my tables in the schema which i gave while creating the RCU and while installing bi. I logged in to bi new->analysis->create direct db request. Here its asking for connecti