How to automate storing ibot results in a directory
Hello,
I have a requirement of
1. scheduling couple of reports which runs every day
2. Automating storing the results of the scheduled reports (Alerts) in a directory in the server (with date sufix to the files or in a new directory for date).
My development environment is in Windows which I'm working currently and production environment would be in UNIX. Please suggest solution in both cases.
3. Finally to create a dashoboard for end users with a date prompt to access these files depending on the date filter.
My approach for the point # 1 and 3 are as below
1. Scheduling set of reports by using Ibots which I configured successfully to run the reports on daily basis.
3. I want to create a table with column1 to store date, column2 to store file name and column3 with BFILE data type to store the link to the files in a directory. This part I would like to automate in a unix script in production. And want to create a request with date filter and display file content from column3.
Please correct me if I'm wrong in my above approach and Advice for the point number 2 to automate downloding of the scheduled report results in a file.
Regarding point #2 Is it something to do with GO URL?? I executed the URL (http://XXXXX:XXX/analytics/saw.dll?GO&NQUser=Administrator&NQPassword=Administrator&Path=/shared/transactions/Sales+By+Month&Action=download&Options=md) from Internet Explorer and its prompting to save the results in a location. Can we give file location like C:\DOWNLOAD also in the URL? And how can I call this URL inside a shell script or from windows command prompt?
Thanks in advance
Muralidhar B
Edited by: Muralidhar b on Oct 28, 2009 9:48 PM
Thank you very much for your detailed inputs regarding Point #2 Prakash.
You are right in saying that I've this requirement to improve performance and users don't need to execute the reports again and again by hitting database or from cache. Because data per day is bit large to store in the table or to caching the data.
Regaring point #3 I want to use BFILE datatype to store the location of the file so that I'm planning to display hyperlink of the files to the users in OBIEE dashboard accordingly users will download the required report data.
Files I can store anywhere by using Ibots as suggested. Could you please suggest any approach in OBIEE to highlight a link to the files in a report or dashboard to download the required files data?
I found that I couldn't able to select BFILE data type column in Physical layer to see the data. and also its throwing error when I select this presentaion column in the report.
Below error message I'm getting:
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition m_CountFields == static_cast<int32>(m_ColumnNameVector.size()), file .\Src\SQCSCacheStorageListStream.cpp, line 222. (HY000)
SQL Issued: SELECT "IBOT_DATA#1".IBOT_FILE saw_0 FROM IBOT_DATA ORDER BY saw_0
Please advice solution if you come across this issue eralier to resolve.
Kind Regards
Murali.
Edited by: Muralidhar b on Oct 29, 2009 5:16 PM
Similar Messages
-
How to display stored procedure results in SJSC table?
I have been able to create a cached rowset and debug/watch the results, but do not understand how to transfer those results to a Table component. Can anyone point me in the right direction?
Details:
In SessionBean1.java, I declared the stored procedure and rowset along with get/set and update procedures:
// SLS trying stored procedure 20060412
private java.sql.CallableStatement spFXRatesStatement;
private CachedRowSetXImpl spFXRatesRowSet = new CachedRowSetXImpl();
public CachedRowSetXImpl getSpFXRatesRowSet() {
return spFXRatesRowSet;
public void setSpFXRatesRowSet(CachedRowSetXImpl crsxi) {
this.spFXRatesRowSet = crsxi;
public void updateSpFXRatesRowSet(String inDate, String inCcy) {
try {
spFXRatesStatement.setString(1, inDate);
spFXRatesStatement.setString(2, inCcy);
spFXRatesRowSet.populate(spFXRatesStatement.executeQuery(), 1);
catch (Exception e) {
// TODO - write exception code
// SLS trying stored procedure 20060412I then �prepared� the stored procedure within SessionBean1�s init() procedure:
// SLS trying a stored proc 20060412
try {
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/bmo_fp");
java.sql.Connection conn = ds.getConnection();
// spGetFXRates
spFXRatesStatement = conn.prepareCall("{call GetFXRates(?, ?)}",
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY);
// next sp...
// clean up
ctx.close();
conn.close();
catch (Exception e) {
// TODO - add exception code
// SLS 20060412 I can see the results in a web page procedure with a �getSessionBean1().getSpFXRatesRowSet().getString(i)� watch.
try {
getSessionBean1().updateSpFXRatesRowSet("9/30/2005","EUR");
getSessionBean1().getSpFXRatesRowSet().first();
while (getSessionBean1().getSpFXRatesRowSet().isLast() != true) {
getSessionBean1().getSpFXRatesRowSet().next();
catch (Exception e) {
// TODO - specify error detail
}Now, how do I transfer these results to a table?I think you have to add a CachedRowSetDataProvider to you page been.
Then initalize it with your getSpFXRatesRowSet() in the init() method.
Then link you table to the CachedRowSetDataProvider. -
How to enable LDAP paged results in Active Directory Auth. Provider
Hello!
I Trying to establish connect with Active Directory server via AD provider in security realms ( it needs for IRM).
I configured provider, restarted the server, but when i trying to view all users in weblogic, i see only 1000 records from AD.
I read that default count of records from AD which returns server is 1000, but we can return more than 1000 records without changing AD property by using paging.
Where can i find this option or how can i configure it in weblogic?
Thanks in advance.The first example was almost correct !
The error message: "javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001C6, problem 2001 (NO_OBJECT), data 0, best match of: 'CN=Schema,CN=Configuration,DC=ric,DC=com'; " simply indicates a naming error.
If you follow the logic of your code, you are trying to create an attribute with the distinguished name:[code]CN=fooattr,CN=Schema,CN=Configuration,DC=ric,DC=com,CN=Schema,CN=Configuration,DC=ric,DC=comIf you are wondering why, it is because you are attempting to create the subcontext from the schema naming context.schema.createSubcontext("CN=fooattr," + dn,attr);You can correct this by changing your code toschema.createSubcontext("CN=fooattr",attr); or toctx.createSubcontext("CN=fooattr," + dn,attr);One other error, you are missing one of the mandatory attributes; namely oMSyntax.attrs.put("oMSyntax","2");You can find details on the Active Directory Schema at http://technet2.microsoft.com/WindowsServer/en/library/97cae647-d996-48ff-b478-c96193abeadb1033.mspx
A simple way of checking the mandatory attributes for any object class is to look at the values of the systemMustContain attribute of the objectClass definition. In the case of attributeSchema, the systemMustContain attribute includes: schemaIDGUID (automagically generated), oMSyntax, ldapDisplayName, isSingleValued, cn, attributeSyntax and attributeID
Another reference that is helpful is a table of Attribute Syntax definitions at http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsbe_ext_dghb.mspx
The only words of advice for extending the schema are:
1. Test, Test, Test, before deploying in production
2. Do not ever reuse attributeID's or make up your own! If you are extending the schema get your own OID from an appropriate standards authority, or they may be obtained from Microsoft. Refer to http://msdn2.microsoft.com/en-us/library/ms677621.aspx or http://msdn2.microsoft.com/en-us/library/ms677620.aspx -
I have stored procedure result, i have succeeded bind it to xtrareport. But how can I group item by department (MaNganh) and category (MaNhom) in XTRA REPORT ? Please help me how to solve it ! (SQL SERVER 2008 R2) (DevExpress 10.2.8)
I've made it, and successful.By add GroupField:
GroupField groupField = new GroupField("MaNhom");
GroupHeader1.GroupFields.Add(groupField);
tblCell_Group_MaNhom.DataBindings.Add("Text", DataSource, "MaNhom");
Thank you for HELP!
Master Can -
How to Automatically generate .XSL file of XML file ???
Hello Everyone,
I have UI which provide the facility to create own format by using drag and drop utility. I have also xml file which contains the data. Now task is how to automatically generate the .xsl file of the dynamically designed format for the data stored in xml form.
If you have any idea about the solution of the above problem.
I will thankful for any help regarding this
Thanks
B. KumarXSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. .xsl is the extension of the XSL file.Thank you, I am aware of all that.
When we design any format by using drag & drop utility, System has to generate the .xsl file (extensible stylesheet for the xml document).Why? To accomplish what?
And then .xsl file is used to display the data which is stored in xml document on the webpage with designed format.So you need to define the mapping between XML and HTML? and you're hoping to do that automatically?
That's a job for a user interface designer. Not a tool.
In brief we need to write a parson
Parser
which will take any designed format and generate the .xsl file for that design, to display the data which is stored in XML document.Doesn't make sense. It would make more sense if you started from a schema. Starting from an actual XML document, i.e. an instance of the schema, no, not even slightly. -
How to hide the Save Results Layout checkbox on the Create Saved Search pop
I need to hide the Save Results Layout checkbox on the Create Saved Search popup. Can anyone tell me how to do it?
This popup is used when the user is on a query (rendered by the af:query component) and they select click the "Save..." button. The have three options, Set as Default, Run Automatically, and Save Results Layout. I have an implementation that supports everything except saving the layout. So I need to hide that checkbox.
Thanks,
MikeFor anybody else who needs to do this, here is how I did it.
Add this to your css
/* This hides the Save Results Layout checkbox on the Create Saved Search screen */
span[id$='saveLayout'] {
visibility: hidden;
} -
How can I store the results of a report in an Oracle table ?
In OBIEE 11g, we need the records resulting from the execution of a report, to be stored in an Oracle table.
Is this possible ?. Thanks.
F r a n c o . -GSR Hi, first of all thanks for your response.
What I'm wanting to do is not exactly what you're proposing.
What I want is that an end user can run a report and that the results be automatically stored in an Oracle table. Without manual intervention. Other BI products perform this action, and I need to do it with OBIEE. Thanks.
F r a n c o . - -
How to use stored procedures in DIAdem and Can the stored procedures be used to return values?
Can anyone please tell me how to use stored procedures in diadem and to return values from it. Its really important, can you please answer it at the earliest.
Thanks In advance
spiyaHi Spria,
I'm very sorry for the mix-up, I thought Allen was going to answer you back with the particulars that we found out. Check out the attached Word document and the below tidbits:
The built-in DIAdem ODBC functions {SQL_...()} can only call stored functions, which return a scaler result {found then in SQL_Result(1,1)}. The syntax for this with an ORACLE db is
"select function(parameters) from package"
...where package defaults to "dual" if you don't use your own package.
There might be exceptions to that though, and the syntax will be different for other databases. Note that stored ORACLE procedures can NOT be called from the ODBC functions, instead you must use either ADO function calls in the DIA
dem VBScript or the OO4O COM wrapper that ORACLE provides (this is described in further detail in the below Word document).
Hope this helps,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
Calling_ORACLE_Stored_Procedures_from_DIAdem.doc 28 KB -
How can I extract the results of my squence?
Hello, I'm a beginer of test Stand.
I've created a main squence with LabView & TestStand, and works well, when it finish TestStand automatically creates my report. I need to extract these results of my sequence in order to create a custom document automatically, creating an action with LabView that works with these results, without any action of an operator.
How can I extract these results? Thanks you very much.Hello,
you've got several options here, although it seems you might want to go with the first option:
1) After running your sequence, you'll find all the results needed for creating a report on the variable Locals.ResultList, which is an array of objects (of the Result type). You can pass this array to external code for it to use the information (i.e. create a report)
2) You can override the report generation callback on your process model (Test Report callback)and create your own LabVIEW-based report generation sequence/routine
3) You can modify the report generation sequences on the process model to suit your needs (always make backup copies and place your modifications on the /Components/User folder !)
I would also recommend you to assist National Instruments Training Courses, as these things can be seen in detail and provide you a better understanding of all the options TestStand has.
Regards,
Jorge M.Mensaje editado por Jorge M. -
hii everyone
I want to automate queries.i.e they should be executed automatically on a particular day in the week. can we do it through oracle jobs..actually wht the case is i will be executing 5 queries evey tuesday.the output frm these queries are used to process another job tht runs every tuesday evening.rather than executing all these queries everytime i want to automate these queries.
can anyone help me how to automate this job.
thnakxhii justin
thnkx for the reply..
the queries wht im executing are little bit complex.one query is dependent on the other..im sending u the steps wht i will be doing when the queries are executed
Below mentioned are the steps to be followed to check if the rewards job ran successfully or not –
1. Run the QUERY #1 in Rewards_Queries_Weekly_Test.sql
2. Note down the number of records returned in STEP 1.
3. Run the QUERY #2 in Rewards_Queries_Weekly_Test.sql.
Enter current date as INPUT parameter.
4. Note down the number of records returned in STEP 3.
5. Compare the number of records returned in STEP 1 and
number of records returned in STEP 3. BOTH THE NUMBERS
SHOULD MATCH TO PROCEED TO NEXT STEP.
6. Copy the results of QUERY #1 to an excel sheet. Do not copy
the serial number generated by PL/SQL Developer.
Copy only the fields returned.
7. Copy the results of QUERY #2 to an excel sheet.
Do not copy the serial number generated by PL/SQL Developer.
Copy only the fields returned.
8. Assuming that the results of QUERY #1 were copied to the
columns A1 & B1 and the results of QUERY #2 were copied to
the columns D1 & E1, copy the following formula
to F2 =IF((A2=D2)*(B2=E2),0,1)
9. The output of STEP 8 would be either 0 or 1 in the cell F2.
1 indicates the records with mismatch and 0 indicates the correct
records which can be ignored. It is possible that the records with
mismatch have an entry in job special pay table and these records
also can be ignored. These records can be filtered
by following next steps.
10. Copy the data in the cells D1,E1 and F1 to H1, I1 and J1 respectively.
While pasting use the option paste Special and select Values option
in the dialog box.
11. Sort H1, I1 and J1 data by J1 descending and next by H1 ascending.
This would list all the in correct records first and correct records next
so that they can be ignored.
12. Now run the QUERY #3 and copy the results to K1. Do not copy the serial number generated by PL/SQL Developer. Copy only the fields returned. These records indicate the rewards special pay records given in the last one week.
NOTE: The QUERY #3 expects two dates in the IN clause. These dates should be Current Date (Since the reward jobs run on Tuesday it will be always current Tuesday’s date) and Last Tuesday’s date.
13. Select all the incorrect records in the cells H1, I1 and J1 and apply
the following conditional formatting formula with format as RED color.
= VLOOKUP($H2,$K$2:$K$220,1,FALSE) <> " "
NOTE: In the above formula change the value of K$220 based on the number of rows you get in the cell K from the results of QUERY #3.
14. The records with BLACK color are the actual records with some issue. Investigate each record manually and analyze the issue. Keep negative hours adjustment, 26 weeks rule in mind while doing so.
the above are 14 steps i will be doing every tuesday when im executing the queries
i want to automate the whole process wht im doing in the 14 steps..
could u suggest me something on this
srikanth -
Get the Stored Function Results
If there is DML in my Stored Function ,how to Using View Objects to Select Stored Function Results?
I want to get the Stored Function Results in my jsp.
please give me the example jsp.Thanks!There's an article on my "Dive into BC4J" weblog that describes this.
http://radio.weblogs.com/0118231/stories/2003/02/06/usingViewObjectsToSelectStoredFunctionResults.html -
Are emails sent automatically stored in Mail?
Hello,
In setting up a Mail account there is an option in Mailbox Behaviors to check "Store sent messages on the server." If, like me, you have an IMAP account should this be checked or not?
With an IMAP account, if it IS checked does that mean email sent is ONLY stored on the server? And if it isn't checked does it mean it's only stored in the computer?
I'm confused because I thought with an IMAP account mail sent and received is automatically stored in both places. If that is so, does it make a difference whether it's checked or not?
Thanks,
iHopeYou can try checking it, but depending on your provider it may, or may not do this task. My experience with Yahoo does not, but it seems to be "on this Mac" in sent.
(It does not seem to make any difference whether if if is checked or not when sending from my Mac, if sent from the web mail, they seem to be saved. This what seems to happen on mine, yours may be diffferent. I have no further explaination.???? They always seem to be stored on my Mac Sent.
Try it for yourself to see how it performs, send yor self some emails, and check to see where they are stored.
It also seems to be less pedicable with additional devices connected to the same acct.
I wait to delete till I have confirmed all the sent and received, then stored on my Mac before deleteing, that ay be for this provider only, as well as this extention. My suggestion is to test extensivly to confirm for your usage. There may be more advice/info from other users.
ATB -
How to automatically create a player schedule?
I need your help how to automatically create a player schedule from a given list of players who will play doubles in a given period.
Let's say, I have a list of 12 players who will each play doubles with random partners for 4 times.
So play one could be: 1&2 vs 3&4, 5&6 vs 7&8, 9&10 vs 11&12.
But now I want inumbers to plan the second, third and fourth play automatically but with unique combinations.
In this example it's quite easy to do it manually, but I need to plan something similar for the tennisclub with many more players.
It should be able to set up a worksheet where you will fill out the following parameters:
List of players, number of available courts, whether you want ot let them play single or double games, number of plays.
The last one could also be left empty so discover how many unique plays you have given the other parameters.
I hope someone is able to help me, because this would save me a lot of time to make the planning for the tennisclub.
Thanks in advance for any support!OK. I think this may work for you:
There are two parts:
1) a small program you have to run (this is the part you may find difficult at first)
2) a Numbers spreadsheet
1) the program is invoked on the command line in the terminal. You can open the Terminal by navigating to the folder "/Applications/Utilities"
you need to download the zip file here, then copy and unzip in the same folder where you plan to store the Numbers document for making the tennis schedule.
Let's agree for this procedure that you are storing the program and Numbers file in the folder "/Users/<your user name>/Documents/TennisSchedule".
Once you launch the terminal you can navigate to the folder where you stored the zip file by typing:
cd ~/Documents/TennisSchedule
now you can invoke the program by typing:
./TennisRandomList
Then hit the return key. Without any arguments the program simply emits some program information with a little help on how to use it-- described in the text starting with "USAGE" (see below)
Proton:TennisRandomList wayne$ ./TennisRandomList
Tennis Randomw List maker
Version 0.1
compiled on Nov 18 2012 @ 09:14:41
USAGE: TennisRandomList numPlayers numCourts numWeeks type verbosity
numPlayers: 1 - 255
numCourts: 1 - 255
numWeeks: 1 - 255
type: [s]ingle or [d]ouble
verbosity: 0 - 5
0 -> player ids only
1 -> player ids + inputs
2 -> player ids + inputs + raw random values
3 -> player ids + inputs + raw random values + pairings
4 -> player ids + inputs + raw random values + pairings
5 -> player ids + inputs + raw random values + pairings
Proton:TennisRandomList wayne$
so to make a schedule for:
-12 players
- 3 courts
- 6 weeks
- singles
you would invoke as:
./TennisRandomList 12 3 6 s
Then type return.
you should get something like:
Proton:TennisRandomList wayne$ ./TennisRandomList 12 3 6 s
Weeks: 6
Players: 12
Courts: 3
Type: singles
Game
Week Slot Court 1 Court 2 Court 3
1 1 3 2 4 6 5 8
1 2 9 11 10 12 1 7
2 1 12 2 7 10 11 1
2 2 3 5 8 4 9 6
3 1 6 11 2 1 7 3
3 2 4 8 5 10 9 12
4 1 4 8 11 3 5 7
4 2 10 12 1 6 9 2
5 1 8 4 3 12 9 5
5 2 6 10 7 11 1 2
6 1 5 7 1 12 3 10
6 2 6 8 2 4 9 11
Proton:TennisRandomList wayne$
You can select, then copy the text following the line "Week Slot Court 1 Court 2 Court 3" upto, but not including, "Proton:TennisRandomList wayne$ "-- bolded in the above quotation
You can paste that into the Numbers document we will now make.
2) a Numbers spreadsheet
The Numbers document includes several tables as shown below: -
IBot results in Shared location is over writing with no results (OBIEE 10g
Hi Dudes,
We are saving iBot results in shared location using java script at 8.am in morning everyday and files looks good. but the same file is overwriting in afternoon time with no results.
actually we are not overwriting file in shared location but it is happening automatically.
please suggest me.
Thank,
Raji.Thank you very much for your detailed inputs regarding Point #2 Prakash.
You are right in saying that I've this requirement to improve performance and users don't need to execute the reports again and again by hitting database or from cache. Because data per day is bit large to store in the table or to caching the data.
Regaring point #3 I want to use BFILE datatype to store the location of the file so that I'm planning to display hyperlink of the files to the users in OBIEE dashboard accordingly users will download the required report data.
Files I can store anywhere by using Ibots as suggested. Could you please suggest any approach in OBIEE to highlight a link to the files in a report or dashboard to download the required files data?
I found that I couldn't able to select BFILE data type column in Physical layer to see the data. and also its throwing error when I select this presentaion column in the report.
Below error message I'm getting:
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition m_CountFields == static_cast<int32>(m_ColumnNameVector.size()), file .\Src\SQCSCacheStorageListStream.cpp, line 222. (HY000)
SQL Issued: SELECT "IBOT_DATA#1".IBOT_FILE saw_0 FROM IBOT_DATA ORDER BY saw_0
Please advice solution if you come across this issue eralier to resolve.
Kind Regards
Murali.
Edited by: Muralidhar b on Oct 29, 2009 5:16 PM -
Hi I have a doubt on how the indexes are actually stored...
Do they have distinct values for columns in a leaf and have all rowids that have the value???Hi,
Indexes are objects so they are stored in database by allocating index segment.
Many links are there:
http://www.scribd.com/doc/2713903/Oracle-index
http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/schema.htm#i5671
How Indexes Are Stored
When you create an index, Oracle Database automatically allocates an index segment to hold the index's data in a tablespace. You can control allocation of space for an index's segment and use of this reserved space in the following ways:
Set the storage parameters for the index segment to control the allocation of the index segment's extents.
Set the PCTFREE parameter for the index segment to control the free space in the data blocks that constitute the index segment's extents.
The tablespace of an index's segment is either the owner's default tablespace or a tablespace specifically named in the CREATE INDEX statement. You do not have to place an index in the same tablespace as its associated table. Furthermore, you can improve performance of queries that use an index by storing an index and its table in different tablespaces located on different disk drives, because Oracle Database can retrieve both index and table data in parallel.
Best regards,
Rafi.
http://rafioracledba.blogspot.com/
Maybe you are looking for
-
Situation: Computer shows internet connection (full bars), but won't actually connect to the internet and load webpages Attempted Fixes: Reset Safari Quit Safari Restart the computer Turn off the computer with router unplugged Turn off Airport Swear
-
13.3" MBP Audio line in Question
I have a 13.3 md-2009 MBP and want to do some recording on the laptop. I want to transfer some music from LPs to the laptop but do not know whether the headphone/audio line in accepts stereo? I thought I read that it only will record in mono, but the
-
ASObjC: Do Two Things at Once
Hi, All. I've got an AppleScript Objective C program that I'd like to have do two things at once. For example, when a button is clicked, speak a sentence, and do some math (example below). The easiest thing would be to just give it two sent actions,
-
Transaction monitoring in Oracle
Hi. I don't know if this is the right forum, but here goes: We've developed a system, where all the client transactions gets processed by our own backend, as well as the database. Like in: Client: begin trans insert into t1 ... insert into t2 update
-
I only have wifi access and my movie will not download. The connection has not been broken, it started downloading and has not moved for 15 mins. There is not an option to resume or even pause. I am on the road and cant connect to another inet con