Tüm oluştur ve değiştir tablo komut dosyalarına sahip Alter_t_new.sql dosyasını çalıştırdığım bir kabuk komut dosyası oluşturdum. Şimdi ne olursa olsun hatalar olsun veya oluşturulsun shoul günlük dosyasına biriktirilmelidir. Ben SPOOL $ LOGFILE çalıştı ama bu bir hatayıNesne oluşturmayı günlük dosyası içine biriktirme
SPOOL: command not found
shell script atıyor:
echo "Starting installation of XXHCM_OBJECTS - XXHCM_OBJECTS ..."
echo "Starting installation of XXHCM_OBJECTS - XXHCM_OBJECTS ..." "">>$LOGFILE
echo "">>$LOGFILE
echo "">>$LOGFILE
echo "Copying Files To Appropriate Directories ..."
echo "Copying Files To Appropriate Directories ..." "">>$LOGFILE
echo "">>$LOGFILE
echo "">>$LOGFILE
echo "Files copied successfully !!! "
echo "Files copied successfully !!! " "">>$LOGFILE
echo "">>$LOGFILE
echo "Changing permissions ... " "">>$LOGFILE
chmod 777 *.*
echo "Changed permissions ... " "">>$LOGFILE
echo "">>$LOGFILE
echo "Creating Custom Package, Synonyms and Grants..." "">>$LOGFILE
echo "Creating Custom Package, Synonyms and Grants..."
echo "">>$LOGFILE
if sqlplus $APPS_USER @Alter_t_new.sql
then
SPOOL $LOGFILE
echo "Custom itables created successfully in APPS schema" "">>$LOGFILE
echo "Custom itables created successfully in APPS schema"
SPOOL OFF
else
echo "Error in creating custom itables in APPS schema" "">>$LOGFILE
echo "Error in creating Custom itables in APPS schema"
fi
echo "">>$LOGFILE
echo "Package, Synonyms,grants and Tables created successfully" "">>$LOGFILE
echo "Package, Synonyms,grants and Tables created successfully"
echo "">>$LOGFILE
echo "Installation completed for XXHCM_OBJECTS - XXHCM_OBJECTS"
echo "Installation completed for XXHCM_OBJECTS - XXHCM_OBJECTS" "">>$LOGFILE
# *****************************************************************************
# End of Script
# *****************************************************************************
@ hinotf- sunucuda my_log oluşturmam gerekecek mi? –
@sreekembose günlük dosyası nerede oluşturuldu SQLPlus – hinotf
çalıştı Bu teşekkürler! –