OBIEE Cache Purge in Unix Environment
Hi,
We are trying to purge OBIEE cache using unix shell script and purgecache.txt which contains call to SAPurgeAllCache().
We are using below script
export MW_HOME=/qa/middleware/
. $MW_HOME/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/bi-init.sh
$MW_HOME/Oracle_BI1/bifoundation/server/bin/nqcmd -d AnalyticsWeb -u weblogic -p weblogic1 -s /users/home/test/purgecache.txt
We are gettting below error message After executing script
/qa/middleware/instances/instance1/tmp/OracleBIODBCComponent/coreapplication_obiodbc1/obis_temp is not a valid Oracle BItemp directory path
is it required to call sa-init64.sh ?? Are we missing anything?? What could be another way to purge cache from command line?
# it is required to run bi-init.sh (UNIX) or bi-init.bat before launching any command line utilities. This sets the environment variables like ORACLE_HOME and ORACLE_INSTANCE correctly. We have used it.
# Commented sa-init64.sh
# as it is giving below error
# syntax error at line 7: `(' unexpected
Thanks in advance
You can try this
Create a text file with a name e.g: say purgecache.txt with below code in it
Call SAPurgeAllCache() and save the file in /<MW_HOME>/Oracle_BI1/bifoundation/server/bin directory.
Before running nqcmd, you must first run bi-init.cmd (or bi-init.sh on UNIX) to launch a command prompt or shell window that is initialized to your Oracle instance. You can find this utility in:
<MW_HOME>/ORACLE_INSTANCE/bifoundation/OracleBIApplication/coreapplication/setup
Then, run nqcmd from the resulting shell window with the desired options.
For example:
nqcmd –d my_dsn –u my_username [-p my_password] –s sql_input_file –o my_result_file
You can pass a text file with SQL statements to the utility (script mode), or you can enter SQL at the command line (interactive mode). Queries are run against the default subject area, unless the object names used in the query are fully qualified.
For example to purge BI Server cache run below command
In windows:
nqcmd -d AnalyticsWeb -u <weblogic_admin user> -p <weblogic_admin password>-s purgecache.txt
In Unix:
./nqcmd -d AnalyticsWeb -u <weblogic_admin user> -p <weblogic_admin password>-s purgecache.txt
Similar Messages
-
How to create odbc (dsn) connection for OBIEE AND INFOR in unix environment
Hi,
we are establishing OBIA in Unix environment we set all the things fine but we are getting problem how to create ODBC connection
for INFORMATICA AND OBIEE. I searched some blogs thats telling there is a ODBC.INI file we need to configure.
but i am not getting clear idea to give parameters and it will not showing any TNSNAME ..........etc
please any body give clear idea about how to create ODBC connection and LOCATION of that file AND parameter which i need to give.
Thanks,
charan....Hi Dpka,
yah i already checked that one but i have not find out any parameter for TNS NAME information.
is OBIEE connected to ORACLE DATA BASE without giving TNS information?............in UNIX OPERATING SYSTEM.
pls give me the clear idea abt how to connect OBIEE, INFORMATICA to ORACLE DATA BASE IN UNIX ENVRNMENT
thanks,
charan. -
How to deploy obiee 11g RPD in unix environment
Hi,
We have installed OBIEE 11g in UNIX env,and we need to deploy new RPD.
pls..could any one share the process and the list of commands that we wil use in while trouble shootingIn OBIEE 11g, you can deploy the RPD via Enterprise Manager (EM). EM can be accessed from browser, EM is deployed on WebLogic.
-
Printing large PDF Report - OBIEE installed in UNIX environment
Dear Experts,
OBIEE is installed in UNIX Environment. Tired to print large PDF (eg: 50 pages), but it throws - Fatal Error.
So searched in forum and got an suggestion from the below link:
printing large pdf and download to power point error message
Suggestion:
{<PDF>
<!-- Size limit for PDF request message -->
<InputStreamLimitInKB>0</InputStreamLimitInKB>
<!-- Path to PDF userconfig.xml file. -->
<!-- <UserConfigFile/> -->
</PDF>
<XMLP>
<InputStreamLimitInKB>0</InputStreamLimitInKB>
</XMLP>} ----Restart BI Server and Java host server.
Suggested solution work well when OBIEE installed in Windows Environment, but for UNIX Environment - got error like - " Page cannot be displayed".
Any help is appreciated. Many Thanks in advance.
Regards,
Priyalakshmi.Hi ,
Any idea about this issue?
OBIEE - version - 10.1.3.4
Regards,
Priyalakshmi. -
Hello experts,
I have ETL running on an ODI server, and OBIEE running on another server (both Windows Server 2008 R2). I want to purge the OBIEE cache by calling a batch file after all the ETL loads are done.
What would be the best way to accomplish this? Please advise.
Thanks in advance!Hi.
I hope is not that late to help on this.
You may try to use the Event Polling table.
Refer to this: http://gerardnico.com/wiki/dat/obiee/event_table
You just need to implement an ODI interface to load this table with the proper information to clear the cache (check Gerardnico post to properly insert into the Event Polling Table)
I spotted one issue with this.
The attribute UPDATE_TS in this table must be unique or you must guarantee in your ETL that no duplicate datetime will be inserted in this table. This attribute is the key for the Cache Purging. It may sound silly to say that, but if you are using a bulk insert and a variable with the date time information all your records in the Event Polling Table may end with the same date time. This will cause a problem and your cache will not be deleted.
Cheers. -
Questions on OBIEE Cache maintenance
Hi Experts,
I have few questions regarding the OBIEE cache.
1. How to clean the cache ? Is there any method to clean the cache using Unix scripts.
2. Is there any way to call an unix script using the iBots ?
Thanks in Advance.
svrHy,
To purge the cache, you have several way :
http://gerardnico.com/wiki/dat/obiee/bi_server/cache/obiee_purging_query_cache
The classic way is to use the ODBC function :
http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_QueryCaching6.html
And to insert them in a script :
http://download.oracle.com/docs/cd/E12096_01/books/AnySched/AnySched_Scripts2.html
That you can call with the job Manager.
Cheers
Nico -
Running reports on Flat file schemas when OBIEE server is on Unix
Hello
we would like to know how Unix OBIEE work with flat file. Currently, in our environment our Development and Production OBIEE are running on Unix AIX machine while our local OBIEE environment is on Windows.
As our devolepment and configuration goes, we have encounter situations where the flat file schema that were working well on Windows OBIEE server will not run on Unix. The flat files are located on a windows file directory and could be successfully imported into OBIEE throu Admin Tool.
However, when updating rowcounts or running reports on answers in Unix OBIEE it would return errors:
State: HY000. Code: 472983136. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
The same activity is working fine on our local machine when OBIEE is on windows..
We would like to get some help on how to work with flat files when OBIEE is runing on Unix..is this the same question as [this one|http://forums.oracle.com/forums/message.jspa?messageID=4018049#4018049] ?
-
How to run OBIEE Reports in Multi-Org Environment?
How to run OBIEE Reports in Multi-Org Environment of EBS.
hi Rainer,
My Forms and Reports Server is in Same System only. Actually i am giving this path
http://vagee.ail/reports/rwservlet?
server=rep_vagee_oracle10g_apps_server&report=D:\FP2
\dealer_reports\oc_dealer.rep&userid=fp2/fp2erp@info
&destype=cache&desformat=pdf&ODSNO=OC0809/00110&branch=DLR002
In My AS System Running Successfully. But Client systems Page cannot be display message is displaying.
but generally i m able to access the reports server using this path
http://vagee.ail/reports/rwservlet?
then Reports server page is displaying but
when i specify that report server name
http://vagee.ail/reports/rwservlet?server=rep_vagee_oracle10g_apps_server
page cannot be displayed.
what will be the problem. please help me. thank you.
Regards,
Kalyan. -
Cache purging in Physical table
Hi Gurus,
there is cache never expire and cache persisitent time avl in every physical table avl in physical layer of obiee. i wanted to know if we will set the cache persistent time for 10 mins then how it will purge the cache automatically
thanksHi Gurus,
I totally aggre with you but can you please pay you kind attenetion towards bwlow points
Are you sure that the physical table cache purging done oracle bi server
and that is not visible to track by the Administratortr
what about cache never expires-- can we purge this cache from cache manager
please make it sure
thanks -
Cache Purging Using Event Poll Table
Hi Experts,
We are Facing a problem when we use the event poll table to purge the cache using OBIEE (10.1.3.4.1). The Oracle BI Server goes down for the polling frequency that has been set. However when we use the same with OBIEE 10.1.3.4.0, the purging happens without any problems.
Please give me suggestions on this
Thanks&Regards
NareshHI Naresh,
I am interested in your purging mechanism of the OBIEE cache. Can you please let me know how to do the cache purging. Also, can you please provide pointers on cache purging manually would be appreciated.
Thanks in Advance
svr -
Implementing Automatic cache purging
Hi All ,
I want to implement Automatic cache purging using Event pooling table in obiee..
i have followed one site, in that they asked me to crated one table in database ... table columns are as follows
1.update_type
2.update_date
3.databasename
4.catalogname
5.schemaname
6.tablename.
here i am having one doubt .. in my rpd , i am having two tables which are using in 4 catalogs . so.. my doubt is .. how should i came to know the table has come from particular catalog .. then i should i populated the catalog names in backend table ..
if any one knows please let me know.
Thanks
SreeHi,
The below links should help you
http://obiee101.blogspot.com/2008/03/obiee-manage-cache-part-1.html
and
http://oraclebizint.wordpress.com/2007/12/18/oracle-bi-ee-101332-scheduling-cache-purging/
To purge the cache automatically you have to set the cache persistent time in the tables present in the physical layer. There you can mention the time after which you want to purge the cache. The steps are provided below:
1. Double click on the table in the physical layer.
2. Select the General tab.
3. Select the Cacheable option.
4. Select the Cache Persistent time.
5. Specifiy the time interval when you need the cache to be refreshed.
You have to do the same for all tables for which you want to purge the cache
Thanks
Deva
Edited by: Devarasu on Sep 28, 2011 2:39 PM -
What is cache seeding and cache purging
hi all gurus
i am getting confusion on cache seeding and cache purging
wat is the difference between seeding and purging
please can any one tel me bout it,
i red some thing in ibot for cache seeding wat it does ?
ThanksHi,
Seeding in simpler words means Filling/loading in according to the context.Where as Purging means removing or cleaning of data.
For more information on both these you can go through these links
http://obiee101.blogspot.com/2008/03/obiee-manage-cache-part-116.html_
http://obiee101.blogspot.com/2008/07/obiee-cache-management.html
Hope its answers your query.
By,
KK -
On opening message says unable to read cache, purge cache. Purging the cache does not help and Bridge continues to hang. Was working fine before.
Mac? REad this http://forums.adobe.com/thread/1237168
-
How to set up automatic cache purge
I am using the event polling table for setting up automatic cache purging.
I have created a table 'event polling table' in the database with the following fields:
CATALOGNAME
DATABASENAME
OTHER
SCHEMANAME
TABLENAME
UPDATETIME
UPDATETYPE
LOAD_ID
with TABLENAME, UPDATETIME, UPDATETYPE as non-nullable fields.
Then I have imported the table to the physical layer of the rpd, set up 'Oracle BI Event tables' in the Utilities as this table and set up a polling frequency of 15min.
I have created a report with 2 columns (DeptID, Saleamt) from 2 tables (Department, Sales) respectively. Both these tables were made 'cacheable' in the physical layer with cache never expires. Now the saved report is ran by logging in once again. So a cache entry is registered. My NQSCONFIG file enables cache.
I have added these 2 tables to the event polling table after the cache entry was registered. Technically after 15min, this cache should be purged automatically as the request created was from these 2 tables. But that does not happen. Even after half hr when I log in and run this report a cachehit occurs as cache still persists. My cache folder is the C:\OracleBIData\cache. I also check entries in the Repository (Manage ->cache).
Please let me know where am I making a mistake.
My goal is to get cache purged automatically every time there's an entry in the EPT. (To test when I create an entry in the EPT, I give the tablename and updatetype (=1), the updatetime is obtained automatically as sysdate.
Thanks
===================================================
For reference I have copied an earlier posting here:
===================================================
lets look at all your questions one by one
As the event polling table gets a row added for each table whose data is updated at the end of each ETL run, when exactly does the BI server purges cache related to that table - As soon as the polling happens and it finds a new record in your table
Lets say I set up a polling frequency (in Tools -> Utilities -> Oracle BI Event Tables) to every 60 minutes. At the end of every 60 minutes does the BI server restart by itself or does the polling take place without restart. - Polling takes place only when the server is up (there is no need to restart)
At the end of every 60 minutes does the BI server poll the event polling table whether or not any new rows are added to it? -(Yes )
What exactly happens when a new record is added to the event polling table in the database. - (The cache is purged )
If at the end of the ETL run data in 3 tables has changed, would 3 records be added to the event polling table in the database. - (yes , after the polling happens)
Let me know if you have more questions ...
Another way you can set it up is to create a batch file which would purge a table as its updated (use a procedure to capture the tables which have a value of 1 for update_type or use triggers to populate a table with these table names ) ...once purged you can set up your cache by using ibots (use javascripts) .
=============================================================================I seem to have all the steps running except #3 - which is clearing the cache!
select T54927.UPDATE_TYPE as c1,
T54927.UPDATE_TIME as c2,
T54927.DB_NAME as c3,
T54927.CATALOG_NAME as c4,
T54927.SCHEMA_NAME as c5,
T54927.TABLE_NAME as c6
from
MPO_OWNER.MPO_EVENT_POLLING T54927
where ( T54927.OTHER in ('') or T54927.OTHER is null )
minus
select T54927.UPDATE_TYPE as c1,
T54927.UPDATE_TIME as c2,
T54927.DB_NAME as c3,
T54927.CATALOG_NAME as c4,
T54927.SCHEMA_NAME as c5,
T54927.TABLE_NAME as c6
from
MPO_OWNER.MPO_EVENT_POLLING T54927
where ( T54927.OTHER = 'cac7057v' )
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121787>>, Close Row Count = 1, Row Width = 384 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Sending query to database named Event Polling (id: <<121830>>):
insert into
MPO_OWNER.MPO_EVENT_POLLING("UPDATE_TYPE", "UPDATE_TIME", "DB_NAME", "CATALOG_NAME", "SCHEMA_NAME", "TABLE_NAME", "OTHER") values (1, TIMESTAMP '2009-03-27 16:59:19', 'Trading', 'remedy', 'MPO_READ', 'MPO_POSITION_DATE_CHOICES', 'cac7057v')
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121830>>, Close Row Count = 0, Row Width = 0 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121830>> DbGateway Exchange, Close Row Count = 0, Row Width = 0 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121830>> DbGateway Exchange, Close Row Count = 0, Row Width = 0 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121787>> DbGateway Exchange, Close Row Count = 1, Row Width = 384 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121787>> DbGateway Exchange, Close Row Count = 1, Row Width = 384 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Sending query to database named Event Polling (id: <<121831>>):
select T54927.UPDATE_TIME as c1
from
MPO_OWNER.MPO_EVENT_POLLING T54927
where ( T54927.OTHER = 'cac7057v' )
group by T54927.UPDATE_TIME
having count(T54927.UPDATE_TIME) = 1
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121831>>, Close Row Count = 1, Row Width = 16 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121831>> DbGateway Exchange, Close Row Count = 1, Row Width = 16 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Execution Node: <<121831>> DbGateway Exchange, Close Row Count = 1, Row Width = 16 bytes
+++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
-------------------- Sending query to database named Event Polling (id: <<121875>>):
delete from
MPO_OWNER.MPO_EVENT_POLLING where MPO_OWNER.MPO_EVENT_POLLING.UPDATE_TIME = TIMESTAMP '2009-03-27 16:59:19'
What am I missing? My NQServer.log shows this:
The physical table Trading:remedy:MPO_READ:MPO_POSITION_DATE_CHOICES in a cache polled row does not exist.
Any thoughts are appreciated.
Thanks
Mano -
Pass a Value to Variable from the unix environment in ODI (ELT)
Hi
i am very new to ODI environment.
i want know how to pass a value to variables in oracle data integrator from unix environment.
Example:
Variable name : Sales
for variable name sales i want to pass the value from unix environment.
Regards,
Raj
Edited by: user11137587 on Aug 19, 2009 6:26 AMWork Around !
You can execute OS commands using Jython script. Probably you need to flush your enviornment variables value into a file using jython script and then read those value into ODI variable from the file.
BUt may I know why you want to read environment variable vaules in ODI, Dont you think this will make your application less portable
Regards,
Amit
Maybe you are looking for
-
BB 10 matching synchronization fields with MS Outlook 2013
I want to chose which field in the contact database of my Blackberry 10 is linked to which field in the MS Outlook 2013 contact database. This feature was available in the BlackBerry Desktop Software, but I am missing it in BlackBerry Link. Can anybo
-
Headset with mic not working on Mac Mini
I have a 5 year old Mini and a brand new one (haven't hooked up the new one because I have to take it to the Apple store to get the data migrated, which BTW Apple now charges $99 for, they didn't before) My problem is getting the mic to work. I am
-
Copied files from old computer to new computer and put in itunes/itunesmusic folder. The only files being read it appears are my purchased files from the itunes store and it looks like those are in itunes/itunesmedia/music. But when I copy into th
-
Invnetory Upload - Post Automatically - Inventory Recon Account
Hi, We are trying to change the status of the GL Master, by checking the box meant for "Post Automatically" for a GL Inventory Recon Account. However, the system gives an error message and does not allow to save, the error message is "'Post auto. onl
-
Fondo transparente de un swf al incustrarlo en un PDF
Hola ¿Es posible que una película swf pueda tener el fondo tranasparente al incustrarlo en un PDF? ¿Hay que hacerlo con Java? ¿Se puede hacer desde el menu de opciones de Tools Media? Gracias