Automatic file creation
Hi to all'
i want to know that it is posible the autometic file creation when specific event is occure like operating systems log files.
if any body knows plz tell me.
thanks.
kashif bashir
[email protected]
You are asking if you can write a java program to create a file? Yes.
Perhaps you want your application to respond to a socket command and when it gets it write to a file? Yes.
Perhaps you want your application to wait for a OS specific 'event' and when it gets it write to a file? Yes.
Do you want more details? Then be more specific about what 'event' is (including OS if that is relevant.)
Similar Messages
-
That was very wordy and I can not at the time make it any better.
I have a template of a decal. I want to make many of these decals but with a different name on each decal. Is there some way I can feed a list to Illustrator and have it automatically generate the decal files, with the text changed in each file to a name on the list? That way I don't have to open up the same template, 30, 40, 50 times and manually change the text content for every name I need.The Variable Data function should be the direction to take for this type of workflow.
http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-6298a.htm l
This link will give you a quick overview.
http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-62a2a.htm l
This is not something I do everyday. Only done this on a couple of jobs which had to have text change in a couple of places with a static background. I don't see a need for this function much with my current workflow, seems like the setup of the template file with variables takes longer than just creating the 12 or 15 files needed. But if you have to create 500 files from one template and can determine what variables need to change then this may be something you want to get good at. -
Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file? I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types. (Ideally, I would like to do this with a C header file only.) Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on. Unfortunately, this capability has not been created yet. Has anyone done something like this before? Thanks in advance for the help.
Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
Solved!
Go to Solution.smercurio_fc wrote:
Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
You can try LabVIEW scripting, though be aware that this is not supported by NI.
Wow! Thanks for the quick response! We would use this cluster as a fixed data structure. No need to change the structure during runtime. The cluster would be a cluster of clusters with multiple levels. There would be not pattern as to how deep these levels would go, or how many elements would be in each. Here is the application. I would like to be able to autocode a Simulink model file into a DLL. The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object. I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink). To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically. Right now I can do everything but the auto creation of the cluster. I can manually build the cluster to match the Simulink model bus structure and it runs fine. But this is only for an example model with a small structure. Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks! -
BAPI for automatic Pr creation witth multiple files from excel sheet
I have written a programm for automatic PR creation with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
types : begin of x_file ,
key1(10),
pur_grp(4),
maktx(40),
plant(4) ,
req(10),
s_qty(13),
wbs(24),
gl(10),
trackno(10),
supl(4),
deladd(255).
types : end of x_file .
data : str5 type char10.
data : mm type char2.
data : yyyy type char4.
data : dd type char2.
data : str9 type char10.
data : str6 type char10.
data : month type char2.
data : year type char4.
year = sy-datum+0(4).
month = sy-datum+4(2).
dd = sy-datum+6(2).
yyyy = sy-datum+0(4).
mm = sy-datum+4(2).
dd = sy-datum+6(2).
clear str6 .
clear str5.
concatenate dd'.' month '.' year into str5 .
concatenate yyyy mm dd into str6 .
DATA : file type rlgrap-filename .
data : it_file type table of x_file .
data : wa_file type x_file .
data : it_header type table of x_file .
data : wa_header type x_file .
*& Internal Table For Define Row and Coloum Postion
data: col_start type i value 1 ,
row_start type i value 2,
col_end type i value 256 ,
row_end type i value 65000 .
*& Internal Table For Retrieve Data From Excel
*data: excel_bdcdata like kcde_cells occurs 0 with header line.
*data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
data: it_index type i.
DATA : IT_INDEX1 TYPE I.
*& Define Field Symbol
field-symbols: <fs> .
data : bdcdata like bdcdata occurs 0 with header line.
data : messtab like bdcmsgcoll occurs 0 with header line.
data : req_items type table of bapiebanc .
data : wa_req_items type bapiebanc .
data : req_acc_asg type table of bapiebkn.
data : wa_req_acc_asg type bapiebkn.
DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
*data : return type table of bapireturn.
*data : wa_return type bapireturn .
data : number type ebeln .
*****************************MOVE FILES******************************
data : xsource type string .
data : xdestin type string .
data : destin1 type string .
data : destin2 type string .
DATA : DEST1 TYPE STRING.
DATA : DEST11 TYPE STRING.
DATA : DEST2 TYPE STRING.
DATA : DEST22 TYPE STRING.
data : sou_dir_name like SALFILE-LONGNAME.
data : tar_dir_name like SALFILE-LONGNAME.
data : tar_dir_name1 like SALFILE-LONGNAME.
data : sou_filename like EDI_PATH-PTHNAM .
data : tar_filename like EDI_PATH-PTHNAM .
data : filename1 type string .
data : tar_filename1 like EDI_PATH-PTHNAM .
data : file_itab like SALFLDIR occurs 0 with header line.
data : wa_file_itab like SALFLDIR.
data : file_count type i .
data : dir_count type i.
data : dir_table like sdokpath occurs 0 with header line.
data : file_table like SDOKPATH occurs 0 with header line.
data : wa_file_table like sdokpath.
data : strr type string ,
str1 type string ,
str2 type string ,
str3 type string .
DATA : PA_VAL TYPE CHAR1.
sou_dir_name = 'D:\barcodes\files\'.
tar_dir_name = 'D:\barcodes\files-success\'.
"success folder.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = sou_dir_name
FILTER = '.'
IMPORTING
FILE_COUNT = file_count
DIR_COUNT = dir_count
TABLES
FILE_TABLE = file_table
DIR_TABLE = dir_table
EXCEPTIONS
CNTL_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
loop at file_table into wa_file_table.
clear : strr , str1 , str2 , str3 .
strr = wa_file_table-PATHNAME .
concatenate sou_dir_name strr into str1 .
concatenate tar_dir_name strr into str2 . " success
concatenate tar_dir_name1 strr into str3 . " failed
FILE = STR1 .
*start-of-selection.
*& Function For Retrieve Data From Excel
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = FILE
i_begin_col = col_start
i_begin_row = row_start
i_end_col = col_end
i_end_row = row_end
tables
intern = excel_bdcdata
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF sy-subrc NE 0.
WRITE : / 'File Error'.
EXIT.
ENDIF.
loop at excel_bdcdata.
translate excel_bdcdata to upper case .
move excel_bdcdata-col to it_index.
assign component it_index of structure wa_file to <fs> .
move excel_bdcdata-value to <fs>.
at end of row.
append wa_file to it_file .
clear wa_file.
endat.
endloop.
sort it_file by key1. "pur_grp maktx plant .
it_header[] = it_file[].
delete adjacent duplicates from it_header comparing key1 pur_grp maktx
plant .
data : h_item(5) type n .
data : h_pack(10) type n .
data : line_no(5) type n .
data : ln_no(5) type n .
loop at it_header into wa_header .
ln_no = 1.
h_item = h_item + 10.
h_pack = h_pack + 1.
wa_req_items-preq_item = h_item .
wa_req_items-doc_type = 'BOM'.
wa_req_items-pur_group = wa_header-pur_grp .
wa_req_items-MATERIAL = wa_header-maktx .
wa_req_items-plant = wa_header-plant .
wa_req_items-pckg_no = h_pack .
wa_req_items-deliv_date = str6 .
wa_req_items-item_cat = '0'.
wa_req_items-acctasscat = 'P'.
*wa_req_items-distrib = '2' .
**wa_req_items-gr_ind = 'X'.
wa_req_items-ir_ind = '2'.
wa_req_items-purch_org = 'TISL' .
wa_req_items-QUANTITY = wa_header-s_qty.
wa_req_items-PREQ_NAME = wa_header-req.
wa_req_items-SUPPL_PLNT = wa_header-supl.
wa_req_items-trackingno = wa_header-trackno.
append wa_req_items to req_items .
clear wa_req_items.
wa_req_acc_asg-preq_item = h_item .
wa_req_acc_asg-g_l_acct = wa_file-gl .
WA_req_acc_asg-wbs_elem = wa_header-wbs .
append wa_req_acc_asg to req_acc_asg .
clear wa_req_acc_asg.
h_pack = h_pack + 1 .
endloop.
clear ln_no .
***BREAK-POINT.
*& BAPI FUNCTION
call function 'BAPI_REQUISITION_CREATE'
importing
number = number
tables
requisition_items = req_items
requisition_account_assignment = req_acc_asg
return = return .Can someone please give me sol........
-
How can I change the file creation date?
I recently downloaded more than 1,000 photos from my vacation. I'm preparing to burn DVDs for a friend, and I noticed that when I copy the photos to the desktop, they don't all have the same date. I have read a couple of discussions here about the difference between photo creation date and file creation date, and I understand the difference. But something seems odd to me.
For purposes of illustration, let's take two photos: "A" was taken with the camera in the landscape position (how one normally holds a point-and-shoot); "B" was taken with the camera held in the portrait position (rotated 90 degrees). The photos were taken on April 24, about three minutes apart, but not imported into iPhoto until May 19.
In iPhoto, both files show the actual creation date. Yay!
The problem is with the files after having been copied to the desktop.
When copied to the desktop, the info panel for photo "A" shows April 24 for both the "created" and "modified" dates. Photo "B," however, shows May 19 for the "created" and "modified" dates.
Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
Is there any way to change this? I want the DVD to show the date the photo was created, not imported to iPhoto. Picky, I know … but I'm like that.Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
Correct. Your camera has an Auto-Rotate feature. However, the camera does not actually rotate any pixels in the file, but instead flags it with an instruction: "Display me this way". This is a tag in the Exif metadata. When you import a file with this tag iPhoto creates a modified version. It does this because most of the apps that integrate with it - email clients, word processors etc - simply don't understand this Exif tag. So if you used the shot in a word processing doc, uploaded it to many Web site etc, the shot would come out sideways.
iPhoto has nothing to say about File dates. There are various file utilities that will edit the dates on Files
http://www.macupdate.com/app/mac/11143/a-better-finder-attributes
for instance. But there are otheers, search on MacUpdate
Regards
TD -
RC-50004: Fatal: Error occurred in ApplyDatabase: Control file creation fai
Hi guys,
I am cloning and EBS 12.1.3 from one server to another, and when Configuring the target system database server with ''perl adcfgclone.pl dbTier'', I am getting the following error:
RC-50004: Fatal: Error occurred in ApplyDatabase:
Control file creation failed
MOS is saying that it is due to wrong permissions on the /var/tmp/.oracle directory and we should give it the following permissions:
chmod 777 /var/tmp/.oracle
After giving those permissions and rebooting the server , and running the perl adcfgclone.pl dbTier script, I am still having the same problem:
RC-50004: Fatal: Error occurred in ApplyDatabase:
Control file creation failed
This is the contents of the ApplyDBTier log file (since the file exceed 30.000 characters, i am going to post the parts where the errors occur:
[oratest@DLAERPSRV01 ERP_DLAERPSRV01]$ cat ApplyDBTier_05021530.log
Started ApplyDBTier at Thu May 02 15:30:44 WAT 2013
Version:
ApplyDBTier.java : 120.6.12010000.3
ApplyDBTier (prog) -1 true true true...
# Calling ApplyDBTechStack...
Executing runInstallDriver...
Started unzipping files...
Completed runInstallDriver.
Executing home registration for s_db_oh...
instantiate file:
source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adouidb.pl
dest : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl
backup : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl to /u02/oratest/db/tech_st/11.1.0/appsutil/out/ouicli20.pl
setting permissions: 700
setting ownership: oratest:dba
instantiate file:
source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/config_ux.tmp
dest : /u02/oratest/db/tech_st/11.1.0/rdbms/lib/config.c
backup : /u02/oratest/db/tech_st/11.1.0/rdbms/lib/config.c to /u02/oratest/db/tech_st/11.1.0/appsutil/out/config21.c
setting permissions: 700
setting ownership: oratest:dba
instantiate file:
source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adlnkoh.sh
dest : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh
backup : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh to /u02/oratest/db/tech_st/11.1.0/appsutil/out/adlnkoh20.sh
setting permissions: 700
setting ownership: oratest:dba
Executing script in InstantiateFile:
/u02/oratest/db/tech_st/11.1.0/perl/bin/perl -I /u02/oratest/db/tech_st/11.1.0/perl/lib/5.8.3 -I /u02/oratest/db/tech_st/11.1.0/perl/lib/site_perl/5.8.3 -I /u02/oratest/db/tech_st/11.1.0/appsutil/perl /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl
script returned:
Beginning OUI CLI cloning for s_db_ohThu May 2 15:30:46 2013
/u02/oratest/db/tech_st/11.1.0/appsutil/jre/bin/java -classpath /u02/oratest/db/tech_st/11.1.0/appsutil/java:/u02/oratest/db/tech_st/11.1.0/oui/jlib/OraInstaller.jar:/u02/oratest/db/tech_st/11.1.0/appsutil/java/xmlparserv2.jar oracle.apps.ad.clone.util.OracleHomeCloner -OUICLI -e /u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml -nolink -oaVar s_db_oh -homestub db -log /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/ohclone.log
Running OUI CLI home cloning from within OracleHomeCloner:
/u02/oratest/db/tech_st/11.1.0/oui/bin/runInstaller -clone -silent -force -nolink -waitForCompletion -invPtrLoc /u02/oratest/db/tech_st/11.1.0/admin/oui/ERP_DLAERPSRV01/oraInst.loc ORACLE_HOME=/u02/oratest/db/tech_st/11.1.0 ORACLE_BASE=/u02/oratest/db/tech_st/11.1.0 ORACLE_HOME_NAME=ERP_DB__u02_oratest_db_tech_st_11_1_0 -J-Doracle.installer.noLink=true
Finished OUI CLI cloning for s_db_oh with return code: 0Thu May 2 15:30:56 2013
Executing script in InstantiateFile:
/u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh
script returned:
adlnkoh.sh started at Thu May 2 15:30:56 WAT 2013
Log file located at /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/make_05021530.log
Using make file "ins_emagent.mk" for linking SYSMAN utilities...
Error while running adlnkoh.sh.
return code = .16
Please check logfile located at /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/make_05021530.log
.end std out.
.end err out.
Executing Technology Stack Configuration...
Executing runAutoConfig...
Deleting files of type INSTALL
Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/sqlnet.ora
Processing driver file: /u02/oratest/db/tech_st/11.1.0/appsutil/template/addbtmpl.drv
Checking for file: /u02/oratest/db/tech_st/11.1.0/appsutil/install/ERP_DLAERPSRV01/txkConfigDbOcm.pl
File exists
File deleted
Checking for file: /u02/oratest/db/tech_st/11.1.0/dbs/initERP.ora
File exists
File deleted
Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
File exists
File deleted
Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/tnsnames.ora
File exists
File deleted
Testing for RAC specific parameters before running autoconfig
No RAC specific parameters were found, running with CVM
Starting CVM in INSTE8_SETUP mode
Using Context file : /u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml
Attempting to create a back up of the Context file
Created back up file of name :
/u02/oratest/db/tech_st/11.1.0/appsutil/out/ERP_DLAERPSRV01/05021531/ERP_DLAERPSRV01.xml
===========================================================================
Starting synchronization of file system Context file and its templates with those in the database
Database connection : Failed
OAM Context editing support feature: Unverified
OAM Customization support feature : Unverified
File system template : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp
Checking for customizations to Context template
Warning: Unable to connect to Database.
If the system is OAM enabled, this may result in loss of customizations.
Looking for custom template at : /u02/oratest/db/tech_st/11.1.0/appsutil/template/custom/adxdbctx.tmp
Custom template : Not Available
Customizations found : None
File system Context file :/u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml
Checking the Context file for possible updates from the Database
Warning: Unable to connect to Database.
If the system is OAM enabled, this may result in loss of customizations and the Context files in DataBase and in the file system may be unsynchronized
===========================================================================
Starting Updates of Context file Thu May 02 15:31:44 WAT 2013
found context version : 120.34.12010000.14
available update version : 120.34.12010000.14
No updates to apply
Starting DB listener with command:
/u02/oratest/db/tech_st/11.1.0/appsutil/scripts/ERP_DLAERPSRV01/addlnctl.sh start ERP
Logfile: /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/addlnctl.txt
You are running addlnctl.sh version 120.1.12010000.4
Starting listener process ERP ...
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 02-MAY-2013 15:32:23
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Starting /u02/oratest/db/tech_st/11.1.0/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.1.0.7.0 - Production
System parameter file is /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
Log messages written to /u02/oratest/db/tech_st/11.1.0/admin/ERP_DLAERPSRV01/diag/tnslsnr/DLAERPSRV01/erp/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
STATUS of the LISTENER
Alias ERP
Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
Start Date 02-MAY-2013 15:32:23
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
Listener Log File /u02/oratest/db/tech_st/11.1.0/admin/ERP_DLAERPSRV01/diag/tnslsnr/DLAERPSRV01/erp/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
Services Summary...
Service "ERP" has 1 instance(s).
Instance "ERP", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
addlnctl.sh: exiting with status 0
addlnctl.sh: check the logfile /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/addlnctl.txt for more information ...
.end std out.
.end err out.
checking DB Connection...
DEBUG: checkDBConnection in()
ADX Database Utility
getConnection() -->
sDbHost : DLAERPSRV01
sDbDomain : camairco.local
sDbPort : 1523
sDbSid : ERP
sDbUser : apps
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
DEBUG: checkDBConnection out()
Skipping Profile Phase
Skipping Apply Phase
Executing CreateDB...
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : DLAERPSRV01
sDbDomain : camairco.local
sDbPort : 1523
sDbSid : ERP
sDbUser : apps
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
adcrdb.sh started at Thu May 2 15:32:40 WAT 2013
The environment settings are as follows ...
ORACLE_HOME : /u02/oratest/db/tech_st/11.1.0
ORACLE_SID : ERP
TWO_TASK :
PATH : /u02/oratest/db/tech_st/11.1.0/perl/bin:/u02/oratest/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/oratest/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/oratest/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/oratest/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
LD_LIBRARY_PATH : /u02/oratest/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u02/oratest/db/tech_st/11.1.0/lib:/usr/dt/lib:/u02/oratest/db/tech_st/11.1.0/ctx/lib
Executable : /u02/oratest/db/tech_st/11.1.0/bin/sqlplus
The log information will be written to
/u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/adcrdb_ERP.txt
Creating the control file for ERP_DLAERPSRV01 database ...
SQL*Plus: Release 11.1.0.7.0 - Production on Thu May 2 15:32:40 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance shut down.
Connected to an idle instance.
ORA-27154: post/wait create failed
ORA-27300: OS system dependent operation:semget failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgpbitsper
CREATE CONTROLFILE REUSE SET DATABASE "ERP"
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
alter database open resetlogs
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
alter tablespace TEMP add tempfile '/u02/oratest/db/apps_st/data/temp01.dbf' REUSE
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
ALTER DATABASE RENAME GLOBAL_NAME TO "ERP.camairco.local"
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Connected to an idle instance.
ORA-27154: post/wait create failed
ORA-27300: OS system dependent operation:semget failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgpbitsper
BEGIN dbms_backup_restore.zeroDbid(0); END;
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
ORACLE instance shut down.
Connected to an idle instance.
ORA-27154: post/wait create failed
ORA-27300: OS system dependent operation:semget failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgpbitsper
CREATE CONTROLFILE REUSE SET DATABASE "ERP"
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
alter database open resetlogs
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
alter tablespace TEMP add tempfile '/u02/oratest/db/apps_st/data/temp01.dbf' REUSE
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
ALTER DATABASE RENAME GLOBAL_NAME TO "ERP.camairco.local"
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
declare lib_ver varchar2(3);
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
ERROR:
ORA-01012: not logged on
Process ID: 0
Session ID: 0 Serial number: 0
Disconnected
exit_code=1
Checking for errors ...
The database has not been successfully created. Shutting down the instance ...
SQL*Plus: Release 11.1.0.7.0 - Production on Thu May 2 15:32:42 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance shut down.
Disconnected
.end std out.
.end err out.
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : DLAERPSRV01
sDbDomain : camairco.local
sDbPort : 1523
sDbSid : ERP
sDbUser : apps
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
RC-00118: Error occurred during creation of database
Raised by oracle.apps.ad.clone.ApplyDatabase
StackTrace:
java.lang.Exception: Control file creation failed
at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:635)
at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Unknown Source)
[oratest@DLAERPSRV01 ERP_DLAERPSRV01]$
Please guys, how can I solve this problem?@Hussain Sawwan
Hi Hussain,
After successfully configured the DbTier and AppsTier with their respective post clone scripts the appstier was automatically started at the end.
But now, I can't seem to connect with my IE 9 and Firefow browsers.
Link: http://dlaerpsrv01.camairco.local:8002/OA_HTML/
Contents of the portpool.lst:
***** List of ports allocated based on port pool 2 *****
Database Port : 1523 (EXT_PORT)
RPC Port : 1628
Web SSL Port : 4445
ONS Local Port : 6102
ONS Remote Port : 6202
ONS Request Port : 6502
Web Listener Port : 8002
Active Web Port : 8002 (DUP_PORT)
Forms Port : 9002
Metrics Server Data Port : 9102
Metrics Server Request Port : 9202
JTF Fulfillment Server Port : 9302
MSCA Server Port : 10212-10217
MCSA Telnet Server Port : 10212,10214,10216 (DUP_PORT)
MSCA Dispatcher Port : 10806
Java Object Cache Port : 12347
OC4J JMS Port Range for Oacore : 23010-23014
OC4J JMS Port Range for Forms : 23510-23514
OC4J JMS Port Range for Home : 24010-24014
OC4J JMS Port Range for Oafm : 24510-24514
OC4J JMS Port Range for Forms-c4ws : 26510-26514
OC4J AJP Port Range for Oacore : 21510-21514
OC4J AJP Port Range for Forms : 22010-22014
OC4J AJP Port Range for Home : 22510-22514
OC4J AJP Port Range for Oafm : 25010-25014
OC4J AJP Port Range for Forms-c4ws : 26010-26014
OC4J RMI Port Range for Oacore : 20010-20014
OC4J RMI Port Range for Forms : 20510-20514
OC4J RMI Port Range for Home : 21010-21014
OC4J RMI Port Range for Oafm : 25510-25514
OC4J RMI Port Range for Forms-c4ws : 27510-27514
[root@DLAERPSRV01 appltest]#
Entry in the /etc/hosts in my Win 7 Laptop:
192.168.0.245 dlaerpsrv01.camairco.local dlaerpsrv01
What could be the cause of this problem? It is unfortunate to reach at this point and not being able to connect. -
How to automate the creation of Function Module & Class Object (SE24)
Experts,
I have the requirement to automate the creation of any type of programs: ie function module (like how we normally create in SE37 together with the parameters), class object (like how we normally create in SE24 together with attribute & method), normal report (like how we did in SE38), module pool and so on.
For example. I backuped my program into a flat file (the entire source code in txt formal or HTML) through a download program and I need to upload back this flat file into another installation of SAP.
Does SAP provide any predefined FM to cater for the above cases or better still, does anyone know of any upload program which I can use for the above requirement.
Thanks in advance.Hi Kris, I can't use the transport system as these are 2 separate SAP installation in a different place. The requirement came in the form of creation of program to be able to generate FM/Class/Report on the go.
-
Automatic file generation using system date and time
Hi guys,
Iam trying to generate a path for file creation automatically using System date and time. I am running into errors with respect to special characters in filename. I am trying to parse the string to get date and time without the '/' and ':' but have not been successful. is there a better way to do it? Please help! I am trying to avoid a dialog box for user to enter a filename.
Thanks!
V
I may not be perfect, but I'm all I got!
Solved!
Go to Solution.here is a little experiment .... building the path out of %m (month) %d (day) %(year) type stuff might help.
Attachments:
putting time in path.vi 7 KB -
PointBase automatic table creation mapping reliability?
If I specify this in the weblogic-cmp-rdbms-jar.xml file for Automatic Table Creation:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1000)
If I specify this:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
<database-type>POINTBASE</database-type>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1)
What's wrong? And how reliable is the PointBase mapping?Hi
The <dbms-column-type> is not intended for generally specifying
the desired column type for the cmp-field. It is meant to
cause the container to generate code to handle the cmp-field
as a java.sql.Blob in the persistence layer.
What the default table creation does is to examine the
java type of the cmp-field and then make its best guess
at a DBMS column type that will support the cmp-field.
In the case of POINTBASE, byte[] fields are made into
BLOB.
Here's the conversion that the container uses to map
java types to POINTBASE Column types:
if(type.isPrimitive()) {
if(type == Boolean.TYPE) return "BOOLEAN";
if(type == Byte.TYPE) return "SMALLINT";
if(type == Character.TYPE) return "CHAR(1)";
if(type == Double.TYPE) return "DOUBLE PRECISION";
if(type == Float.TYPE) return "FLOAT";
if(type == Integer.TYPE) return "INTEGER";
if(type == Long.TYPE) return "DECIMAL"; // PointBase DECIMAL is DECIMAL(38,0)
// 10**38 is approx: 2**126
it's big enough
if(type == Short.TYPE) return "SMALLINT";
} else {
if (type == String.class) return "VARCHAR(150)";
if (type == BigDecimal.class) return "DECIMAL(38,19)";
if (type == Boolean.class) return "BOOLEAN";
if (type == Byte.class) return "SMALLINT";
if (type == Character.class) return "CHAR(1)";
if (type == Double.class) return "DOUBLE PRECISION";
if (type == Float.class) return "FLOAT";
if (type == Integer.class) return "INTEGER";
if (type == Long.class) return "DECIMAL";
if (type == Short.class) return "SMALLINT";
if (type == java.util.Date.class)return "DATE";
if (type == java.sql.Date.class) return "DATE";
if (type == java.sql.Time.class) return "TIME";
if (type == java.sql.Timestamp.class) return "TIMESTAMP";
if (type.isArray() &&
type.getComponentType() == Byte.TYPE) return "BLOB";
if (!ClassUtils.isValidSQLType(type) &&
java.io.Serializable.class.isAssignableFrom(type)) return "BLOB";
"Brian L" <[email protected]> wrote:
>
If I specify this in the weblogic-cmp-rdbms-jar.xml file for Automatic Table
Creation:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1000)
If I specify this:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
<database-type>POINTBASE</database-type>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1)
What's wrong? And how reliable is the PointBase mapping? -
Automating/scripting EAR file creation in WLS 6.1
Has anyone ever automated/created a script to automate the creation of an EAR file in WLS 6.1 SP2 or SP3?
TIA
ScottI would compare the classpath settings on the 2 machines.
NoClassDefFoundErrors often occur when you have a class in a parent
loader (eg the classpath) that depends on a class only found in the
child loader (eg the application).
-- Rob
Raju V wrote:
Hi, I am trying to deploy an ear (WL6.1 on WIN2K). I am getting java.lang.NoClassDefFoundError:
error. However we deploy the same ear or in another machine, the deployment works
file.
I have the following structure
MyEjb.jar
lib/MyUtils.jar
META-INF/application.xml
In MyEjb.jar, I have a manifest file with following info Manifest-Version: 1.0
Created-By: 1.3.1_04 (Sun Microsystems Inc.) Class-Path: ./lib/MyUtils.jar.
My question is which configuration/startup files should I coompare to find the
diffrences between the machine that works and machine that doesn't work.
If I run the application in exploaded version with MyUtils.jar in the weblogic
class path (set in the startup script), every thing works fine.
I modified the Class-Path in the manifest to lib/MyUtils.jar and then to ./lib/MyUtils
jar with out any luck.
I have two versions of WL in WIN2K machine that doesn't work (5.1 and 6.1). 5.1
starts on port 7001 and 6.1 on 8001. However I have only 6.1 started and 5.1 is
not running
Any help will be greatly appreciated.
Thanx Raju -
Automatic PO creation of free text PR
Hi!
We have all our PRs in free text since we are not yet using material master. One of our purchase organization will only order from one vendor and they will enter that vendor and price in the PR. Is it possible to create a PO automatically from that PR without a material or source list?
Sincerely
AndersHi
Thank you very much. Is it possible to restrict the automatic creation to a certain purchase organization?
If I understand you right:
1) Create PR with item category D Service
2) Activate automatic PO creation in ML91
That will create POs for all PRs created as a service?
Sincerely
Anders -
Problem during automatic PO creation
Hi,
I have run MRP for a certain material using MD03 .Message shows MRP run successfully.Then I checked the status of this by using transactions MD04 and it shows the PR no for that material.But when I want to create automatic PO through ME59n using that PR no , message shows no suitable PR exist.I have also set the Automatic PO indicator in Material master Purchasing view.
What is the reason behimd it.Hi,
For automatic PO creation follow the below points.
1) Material Master purchasing view tick automatic PO check box
2) Vendor Master purchasing view tick automatic PO check box.
3) Maintain Source list for Vendor & Material.
4) Maintain Purchase Info Record.
5) Create a Purchase Requisition.
6) Use T.Code: ME59N & execute for PR for vendor, you will be able to create automatic PO.
Ensure that Purchase Info Record should be there.
If you have more than one vendor then fixe only one vendor in source list.
Did you set source determination during PR creation
Regards,
Biju K -
Error during automatic po creation ME59N
Dear All,
Following errors has been shown after automatic po creation by ME59N:-
Message text Message Class Message Number
PO could not be created
PO header data still faulty MEPO 2
Enter Validity End ME 83
Enter Latest GR Date ME 83
Can delivery date be met? ME 40
Requisition could not be converted
Please suggest how to solve above .
with regards,
Pradeep BhardwajHi
From the messages it seems that system is expecting a Validity end date at PO header & Latest GR date at item level.
Do you have these two fields as required in the PO??
If these are required fields then you need to have process to populate them automatically (Programatically) to resolve the error.
Thanx
Prasad -
SRM Classic - Automatic PO creation in R/3 only for PReqs based on catalogs
Dear Experts,
in SRM 7.0 Classic Scenario, i am facing the following question w.r.t. automatic PO creation on the R/3 side:
Is it possible to have automatic PO creation in R/3 only for those purchase requisition items, that are based on shopping cart items from a third party punch out catalog?
The idea is, that the requisitioner on the SRM EBP side shops in a catalog. Once the the SC is approved and the purchase requisition is created in the R/3 system, automatically a PO should be created based on that PReq. This would save the time for the buyer, who do not need to pay attention to this document, because the purchase from the catalog guarantees the buyer, that the already pre-agreed conditions are getting applied.
But PReqs that are based on Free Text shopping cart EBP items must not be taken into account for the automatic PO creation.
Is there a way to distinguish between the catalo-based and the non-catalog based PReq positions?
Thank you.Hello Ashutosh,
thank you very much for that idea!
I would have the following question w.r.t. to such configuration:
If i configure that the PO creation for complete SC should happen for a certain purchasing group, would it be somehow possible to arrange that when a Catalog item is put into the shopping cart, that only that certain purchasing group gets defaultet? (the idea behind this is, to leave the free text shopping carts to already known purchasing groups and to keep the purchase requisition as the backend object for this configuration. And additionally to create new purchasing groups, that should be linked to the catalog purchases and to POs as the backend objects).
Thanks again for the help! -
Error during automatic PO creation by PR (ME59N)
Dear All,
Following errors has been shown after automatic po creation by ME59N:-
Message text Message Class Message Number
PO could not be created
PO header data still faulty MEPO 2
Enter Validity End ME 83
Enter Latest GR Date ME 83
Can delivery date be met? ME 40
Requisition could not be converted
Please suggest how to solve above .
with regards,
Pradeep BhardwajHello,
to check the errors issued I suggest to try to create the PO converting the PR from transaction ME21N.
I guess that some fields, mandatory for the PO creation, were not filled in the Purchase Request and could not be determined in any different way. If you can't maintain them on the PR you should set them as optional, if possible, in the customizing for Screen lay-out of transaction ME59N, under "Materials Management --> Purchasing --> Purchase Order --> Define Screen Layout at Document Level".
Hope to be useful.
Best regards,
Andrea
Maybe you are looking for
-
Can't uninstall or reinstall oracle 10g express edition in w/server 2003
Hi, I need help from all of you, i already install oracle 10g express edition in windows server 2003 in D drive. but i can't remove because the oracle not in the add remove program so i download the windows install clean up to remove but after remove
-
HT201250 can time machine back up to icloud
Can I back up information straight to icloud instead of an external hard drive.
-
Black spot on screen mac book air
Black spot on screen. I stepped on the edge of it. It looks ink puddle
-
HT3951 Error message trying to download icloud songs purchased
I'm trying to download my icloud purchased songs to a laptop but I am getting an error message that I do not have enough access privileges for this action. Does anyone know what this means? Thanks.
-
Problem installing Oracle XE in Linux (Suse 9.2)
hello I just installed Oracle XE and did the configuration. the database starts and I can do a telnet localhost 1521 and I get a connection. but I can not connect via sqlplus or the database homepage with firexfox. SqlDeveloper does not work either.