
VMware, Inc. 19
Chapter 3 External Database Setup
bIfyouhaddefinedacustomadm_olapusernameandpasswordwhenyouhadcreatedthedatabase
userasdescribedin“CreatetheExternalReportingDatabaseUser”onpage 17,thenchangetheuser
nameandpasswordcredentialsaccordingly:
user.id=adm_olap/adm_olap
c Changethedelete.data.filesparameterto=trueifyouwanttodeletethedatafilesaftertheyare
loaded.Ifyoukeepthedefault,youneedadditionaldataspacethandefinedin“ExternalDatabase
SystemRequirements”onpage 15:
delete.data.files=false
3Loadthetimedata.
Thecurrentadm_olapschemahasatimedimensiontablethatisstatic.Fillthetimetableonceandleave
itunchangedthereafter.Performthefollowingstepsbeforetheloaderfirstrun:
cd adm_olap
unzip static_data/time.csv.zip -d data/
Thetime.csvdataisloadedthenexttimethesynchronizationprocessruns.
4Testtheconfigurationtoensurethatyouhaveinstalledandconfiguredtheclientcorrectly:
aRunacompletesynchronizationfromtheADMConsoleasdescribedin“Runningthe
SynchronizationProcessNow”onpage 13.
bAftertheuploadcompletes,performthefollowing
stepsonthesystemonwhichthedatabaseis
installed:
iLoginasauserwithOraclepermissions.
ii Changedirectoriesto
unzip_path
/adm_olap/andrunthesynchronizationprocess:
cd
<unzip_path>
/adm_olap/
chmod 755 sync_adm_olap.pl
$ ./sync_adm_olap.pl
5SchedulethesynchronizationprocessonLinux.
aLoginasauserwithoraclepermissionsandenter:
crontab -e
bVerifythefollowinginformation.Ithastobepartofthecrontabforittorunproperly:
PATH=... <oracle home full path/bin>
ORACLE_SID=<>
ORACLE_HOME=<>
<cron expression><install dir>/adm_olap/sync_adm_olap.pl >>
<
install_dir
>/adm_olap/log/sync.log 2>&1
ThefollowingisanexampleofacronentryinLinux,wheretheprocessisscheduledtorunafterevery
15 minutes:
PATH=...
ORACLE_SID=...
ORACLE_HOME=...
*/15 * * * * <install dir>/adm_olap/sync_adm_olap.pl >> <
install dir
>/adm_olap/log/sync.log
2>&1
NOTEForsecureftp,usethesync_adm_olap_sftp_oracle.plscriptinsteadof
sync_adm_olap.pl
N
OTEForsecureftp,usethesync_adm_olap_sftp_oracle.plscriptinsteadofsync_adm_olap.pl
and for more information about cron expression please contact your unix admin.
Comentários a estes Manuais