Export ejb to unix
I created an entity bean in windows and sql server using iplanet and forte. How can I export it to aix unix if it has sybase and iplanet ready?
<i>I created an entity bean in windows and sql server using iplanet and forte. How can I export it to aix unix if it has sybase and iplanet ready?</i>
You don't have to do anything at all! That's the benefit of Java.
For example, in iPlanet if you use iasdeploy (or Forte) to deploy to an iAS server you don't even have to know if the destination server is Windows, Solaris, or AIX. You just give the instance name or the host/ip.
Caveat: Of course its possible to write non-portable code by using JNI or by making assumptions about the file system. But it doesn't sound like you've done anything like that.
David
http://www.amazon.com/exec/obidos/ASIN/076454909X/qid%3D1014048522/ref%3Dsr%5F11%5F0%5F1/103-0245424-1390212
Similar Messages
-
JTA, JAM Exported EJB Service Timeouts
We are using the Java Adapter for Mainframe (JAM) v5.0, with the Server EJB programming
model as documented in JAM docs(CICS is initiating a call to this EJB).
In the JAM section in wls 6.1 sp2 console, under the Exports/Exported EJBs section,
one of the parameters listed is "Timeout" for the selected Service name, which is
by default 30000 msec..my questions:
1. how is this timeout parameter related to JTA timeout parameter in the weblogic
console.
2. if i specify the <transactiontype> elemnt in ejb-jar.xml as Conatiner and have
the follwoing
<container-transaction>
<method>
<ejb-name>TMS2Ejb</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
how is this related to timeout parameter in JAM console.
3. Does the JTA timeout setting override the JAM Service Timeout setting? I am not
specifying anytimeout parametr in the ejb decsriptors.
4. Is the JAM Exported EJB Service Timeout setting same as setting the timeout parameter
for EJB in the descriptors?
Thanks a lot for yr time...
We are using the Java Adapter for Mainframe (JAM) v5.0, with the Server EJB programming
model as documented in JAM docs(CICS is initiating a call to this EJB).
In the JAM section in wls 6.1 sp2 console, under the Exports/Exported EJBs section,
one of the parameters listed is "Timeout" for the selected Service name, which is
by default 30000 msec..my questions:
1. how is this timeout parameter related to JTA timeout parameter in the weblogic
console.
2. if i specify the <transactiontype> elemnt in ejb-jar.xml as Conatiner and have
the follwoing
<container-transaction>
<method>
<ejb-name>TMS2Ejb</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
how is this related to timeout parameter in JAM console.
3. Does the JTA timeout setting override the JAM Service Timeout setting? I am not
specifying anytimeout parametr in the ejb decsriptors.
4. Is the JAM Exported EJB Service Timeout setting same as setting the timeout parameter
for EJB in the descriptors?
Thanks a lot for yr time...
-
How to Print the Export variables in UNIX
Hi Team,
I am facing a problem to print the export variables.
Please find the following code
Ex: a=$USERNAME
B=$PASSWORD
c=$a/$b
echo $C
while I am printing the values in C i am getting like this /apps
$USERNAME contains apps
$PASSWORD contains apps
The above 2 variables are environment variables .I expect the result like this apps/apps
but I am getting the result as /apps
can any one help on this issue?
Best Regards
Dileepcan any one help on this issue? This is the Oracle Forms forum. Ask this in a UNIX forum.
-
How to wrap import and export in a Unix shell script?
Hi all,
I want to write a simple korn shell Unix script to kick off export and import
for our Oracle 10g refresh databases. Do any of you have a script to do this?
The goal would be:
1. Take export using exp of 10 tables in PROD database on database server1
for the prod schema user
2. Use sftp or scp to copy over the export dump file to database server 2
3. Use a shell script to import the dump file into TEST database server for schema
test
4. use nohup to run the export and import in background through cron job
We are running Oracle 10g Release 2 on Red Hat Linux.
Thanks,
Ben PrusinskiWouldn't it be easier to have both databases in your tnsnames.ora file. Then you can export and import on the same server without copying the files to another server.
script:
exp <username>/<password>@PROD file=<file>.dmp log=<explog>.log owner=prod
imp <username>/<password>@TEST file=<file>.dmp log=<implog>.log fromuser=prod touser=test
run this script as: nohup <scriptname> &
Since you are on oracle10g you can also use datapump (expdp and impdp) for faster exporting and importing, but I do not know the syntax by heart -
Export Results in Unix Executable Files Instead of .jpg
When I try to export an album to a folder, the exported files are in "unix executable file" format instead of .jpg
How do I fix this?
Mac OS X (10.4.6)Harley:
Welcome to the Apple Discussions. In the file export window have you selected jpg or "original format" and have the Add extension checkbox checked?
Do the exported files have a extension? If so and it's jpg, then select on and bring up the Info window for it (Command-I). Then under default application select Preview and click on the Apply to all.. button. If you prefer to use a 3rd party editor like Photoshop or PS Elements then select that and click on the Apply to all... button. But the files should have an extension.
Do you Twango?
G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD, Mac OS X (10.4.6) 22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200 -
Export from HP-unix and import on solaris
Hi all,
Can anyone give me the procedure and constraints that are taken for exporting oracle 8i on HP-unix and importing on oracle 9i Solaris machine, Any docs or metalink notes also helps me
what are the parameters that should taken for faster export and import ...
export is for full database ..
If anyone can give me a quick response , i would appreciate that. because i have only 2 days in hand...
Thanks in advanceThe export and import commands are documented in the Database Utilities manual for whatever version you are running. They work the same on both OSs
Description of your requirement will help get a better response - it almost sounds like you want to migrate, but ...
in general, the syntax is
exp|imp user/password@db file=export_file.dmp parameters-list
exp help=y
imp help=y
give a decent summary of the parameters. You can keep them in a parameters file if this needs to be reproduced.
One thing - don't use 'compress=y' ... it tries to plunk each segment into it's own single extent, and that is often fatal. -
Exporting from Hp-unix and Importing on Solaris
Hi all,
Can anyone give me the procedure and constraints that are taken for exporting oracle 8i on HP-unix and importing on oracle 9i Solaris machine, Any docs or metalink notes also helps me .
And i need steps like how to disable the constraints and triggers and how to take take export. what precautions are taken while exporting and importing.
what are the parameters that should taken for faster export and import ...
export is for full database ..
If anyone can give me a quick response , i would appreciate that. because i have only 2 days in hand...Hi,
I dont think that cross platform with work in exp/imp u can give a try anyway.
Take export in direct path tat would be faster if you are using 10G then use Datapump (expdp/impdp)
Before u could use exp or expdp / imp or impdp login as oracle use and export the variable ORACLE_SID to the target database
do this $ exp help=y (for export) or imp help=y (for import)
E.g. export syntax
EXPORT
exp parfile=exp.par
parfile (exp.par)
userid="/ as sysdba"
file=/path/filename.dmp
log=/path/filename.log
direct=y
constraints=n
triggers=n
full=y (for full export)
owner=user1,user2(for schema level export)
IMPORT
imp parfile=imp.par
parfile (imp.par)
userid="/ as sysdba"
file=/path/filename.dmp
log=/path/impfilename.log
full=y (for full import)
fromuser=username (for schema level import)
touser=username
Try in google search for syntax of otn site for good documents
Cheers,
Kamalesh JK -
Hi
I am working in WL Server on Windows Os. In that os, I am able to Deploy the Ejbs,run the WL Server and also Accessiong the EJBs accounrding to my application.
But thing is , now we are planning to Shift the Environment to Unix. So. Is these old Ejbs are working fine in Weblogic Server that are running in unix. Or i need to compile and re deploy in the Weblogic server in Unix.
I also tryed to copy all .jar files with ftp binary mode to my unix server. But its giving the Exception like
Unable to initialize the server:java.long.NullPointerException fatel initialization exception
java.long.NullpointerException
at weblogic.ejb.persistence.Installedpersistence.initialize (installedPersistence.java.251)
at
weblogic.ejb.perisistence.installedpersistence<init>9Installedper sistence.java:81)
If any body give the solution asap that may be most helpful for me. \n
Thnakx
Krishna
[email protected]
There is something different between NT and UNIX deployment as far as ejb persistence is concerned. You can first start of with the properties file and then work through the deployment descriptors to figure out whats
different. If deployment descriptor has to be modified then you will have to run ejbc again I think.
- Prasad
Krishna wrote:
> Hi
> I am working in WL Server on Windows Os. In that os, I am able to Deploy the Ejbs,run the WL Server and also Accessiong the EJBs accounrding to my application.
> But thing is , now we are planning to Shift the Environment to Unix. So. Is these old Ejbs are working fine in Weblogic Server that are running in unix. Or i need to compile and re deploy in the Weblogic server in Unix.
> I also tryed to copy all .jar files with ftp binary mode to my unix server. But its giving the Exception like
>
> Unable to initialize the server:java.long.NullPointerException fatel initialization exception
> java.long.NullpointerException
> at weblogic.ejb.persistence.Installedpersistence.initialize (installedPersistence.java.251)
> at
> weblogic.ejb.perisistence.installedpersistence<init>9Installedper sistence.java:81)
> ..
> ..
>
> If any body give the solution asap that may be most helpful for me. \n
> Thnakx
> Krishna
> [email protected]
-
SAPINST - Export DB - Tru64/UNIX
Hi Gurus,
I'm trying to export my Informix database on UNIX/ TRU64 5.1, but sapinst ending with error :
INFO 2008-02-25 12:42:02
Account informix already exists.
TRACE
checking existence of account user="informix" uid="201" succeeded with true.
TRACE
inserted account (informix, 201, USER) into the accountcache.
Transaction begin ********************************************************
ERROR 2008-02-25 12:42:02
FSL-01011 Unable to check password for account user="informix" uid="201".
Transaction end **********************************************************
Of course I'm writing a correct password to dialog screen, sometimes changed.
Your suggestions are welcomed.
Kind regards
Michal.Error is solved. Was connected with Advanced security settings. Installation need to have password for informix in /etc/passwd.
-
I am new to oracle and I i am also learning unix. Does any one has unix korn script for oracle export which also checks if export is successful. Like I want to check something like this.
Perform Export
check if export is successful
then
ftp the export.dmp file
if if ftp is successful
then mail the user that the export/ftp is successful
else email not successful export/ftp
else
emial export is not succesfful
Thanks.
elseHi,
Oracle Version : 10.1.3.0.0
OS System : Linux Ver 3
Export_bkp_scheduling on linux server.
shell script for backup.
oracle@oracle]$vi expbkp.sh
#press i or a ( for insert mode)
#!/bin/bash
ORACLE_HOME= /db/app/oracle/orahome #put_oracle_home_path
export ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
#for system date with dmp file.
value= ` date '%d%m%y'`
exp userid/pwd file=file_name$value.dmp log=log_name$value.log
#type shift + zz for file closing.
shift+ZZ
oracle@oracle]$cat expbkp.sh # check expbkp.sh file contents.
Schedule ur backup according ur time Eg> every night 10 pm. for scheduling use "CRONTAB" utility.
oracle@oracle]$crontab -e #for create new crontab file.
#press i or a for insert mode
0 20 * * * /db/app/expbkp.sh #give compete path of ur .sh ( bkp script file).
oracle@oracle]$crontab -l ( for check crontab file)
oracle@oracle]$crontab -r ( for delete crontab file entry )@Legatti
after you suggestion and help i was create above script.
regards
Taj
Message was edited by:
M. Taj -
What is the the best way to export from NT to
Unix (hp-ux) the complete Oracle Portal with about 1000 PL/SQL portets.
1) What are the restrictions?
2) Do you know some problems?
3) How long time it will take (1 day, 2 days or more?
nullBefore exporting/importing, be CERTAIN that the versions of Oracle Portal are the SAME between your NT and HP/UX Portal installations. For instance, one installation cannot be at 3.0.6.x vs. another at 3.0.7.x.
Also, there is a portal export/import white paper which provides a good overview of this process at: http://technet.oracle.com/products/iportal/pdf/export_import.pdf
This should get you started in the right direction..
Best Regards,
Harry
null -
Export file from unix to windows
hi,
i need your suggestions about an issue.
my problem is that i have a oracle db on unix machine. i will create a procedure on that database which will produce a text file. however, i need to place this file to a windows machine and want to make it with pl/sql code no other tool or something. is this achievable?hi again, let me clarify my problem.
the procedure will run in unix and create the file on windows.
the pl/sql code will generate an xml output , i want to save this output to windows.
is this achievable, if so, how? -
APEX Application Export/Import
Hi,
I have my application build in APEX on 10.2.0.4 database which now i want to migrate to 11.2. Name of schema on the back of my application is DBADMIN. What i have done is, i just exported the application from my current apex on 10.2.0.4 and tried to import on my 11.2 but it gives me following error message
ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 80, column 32: PLS-00103: Encountered the symbol &quot;!&quot; when expecting one of the following: ( - + case mod new not null &lt;an identifier&gt; &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date &lt;a string litThis is first time i am migrating my application so please help to find out what is the issue and how to resolve it. Following is the detail how i performed the operation
Source APEX
Workspace name = Monitoring
User of application which loged in to this workspace and created application = SALMAN
Application name = Monitoring
Database schema name behind application = DBADMIN
I exported application in UNIX and also DOS format
Destination APEX
Workspace name = Monitoring
User of application which loged in to import the application = UTACADMIN
Database schema name behind application = DBADMIN and i have already exported the schema from my source database have imported all the objects with data
Tried importing application from UNIX as well as DOS script but same error message as above.
Please guide me how can i successfully migrate my application from my source APEX to this new APEX
ThanksNow i exported the workspace from my source APEX and imported in destination and everything is fine and now apparently everything is same but still same error during import of the application, please help to resolve.
I tried to execute the application export script on sqlplus, but following error was returned
EMREP.UTAC.COM.SG$APEX_030200> @d:\f100.sql
APPLICATION 100 - Monitoring
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20090112
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
ORA-06512: at line 3Thanks
Salman -
FM to GET file listing of a UNIX directory.
Hello everyone,
Please can anyone provide me a function module that can return to me ALL the files found inside a UNIX directory. I have tried FM EPS_GET_DIRECTORY_LISTING but I can't seem to provide the correct parameter.Ryan,
check this program,
REPORT ZFTPSAP LINE-SIZE 132.
DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.
DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.
START-OF-SELECTION.
*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.
DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
ID 'DSTLEN' FIELD MI_PWD_LEN.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
USER = 'userid'
PASSWORD = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
HOST = 'unix-host'
RFC_DESTINATION = 'SAPFTP'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = MI_HANDLE
COMMAND = 'dir'
TABLES
DATA = MTAB_DATA
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA.
WRITE: / MTAB_DATA.
ENDLOOP.
ELSE.
do some error checking.
WRITE: / 'Error in FTP Command'.
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
OTHERS = 1.
DATA:
l_pcfile LIKE sapb-sappfad, "Desktop file & path
l_serfil LIKE sapb-sappfad. "Server File & path
l_pcfile = 'D:\Data\temp\input.txt'.
l_serfil = '/tmp/output.txt' .
CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
EXPORTING
path = l_pcfile
targetpath = l_serfil
EXCEPTIONS
error_file = 1
OTHERS = 2.
Don't forget to reward if useful..... -
Problem building EJB jar file using Eclipse
Hi,
Here's my file sturcture.
ejb\x\y\z\test\
ejb\x\y\z\test1\
'ejb' is the root directory.
The java source files under 'test' have a package name x.y.z.test.
The java source files under 'test1' have a package name x.y.z.test1.
I want to build a EJB jar file for 'test' and 'test1' separately. In eclipse when I create an EJB project, I specify the root folder as the source in the java build path settings. So the project explorer in Eclipse shows both the packages since they are under the same root folder. When I try to do 'Export - EJB Jar File', it includes both the 'test' and 'test1' in the .jar. Is there a way to build them separately ?
Thanks,As far as I know, there is no way in Eclipse to specify a package prefix for a source folder. Assuming that you are not using an operating system with support for symbolic links at FS-level, the only way I can think of solving your problem is via linked folders and includes/excludes.
1. Create two ejb projects in your workspace. Specify locations somewhere independent of where the root of your source tree is located.
2. Right click on proj1 and select Properties / Java Build Path / Source.
3. Click Link Source and specify the location to your source root on disk. Click Next.
4. In the inclusion patterns section, add a pattern that captures classes appropriate for that module. Click Finish.
5. Delete the original source directory that was created during project creation before leaving Build Path configuration dialog.
6. Repeat steps 2-5 on the second project, except specify a different inclusion pattern.
This should produce a project structure that Eclipse will be happy with, but you have to be a little bit careful. Even though you filtered out classes from the view of the java compiler for a particular project, you will still see them listed in the various navigational views (such as Package Explorer or Project Explorer). Don't modify these filtered out files. The project that is supposed to be building them will not react to changes in the other project. You will have to manually refresh (right click on project and select refresh) the other project before the java compiler will see changes.
Hope this will help you out.
- Konstantin
Maybe you are looking for
-
[SOLVED]Can't print to my Brother DCP-7065dn after upgrade to systemd.
Hi All, I have a pure systemd installation and I'm having issues printing. I have a Brother DCP-7065dn which works well on my Ubuntu laptop with the drivers availible from Brother. I downloaded and installed the drivers for this printer from the AUR
-
System clipboard, AWT TextAreas, and JTextAreas
This code makes a JApplet with a Swing JTextArea and an AWT TextArea. The JTextArea won't accept pasted text that was copied from another application. The AWT TextArea will. Why is this, and how can I get a JTextArea to accept pasted input? import ja
-
I am playing Mini-Dv tapes from my Panasonic DV-2000, and using the RCA (Red,White, Yellow) cables to connect into me SONY VRD-MC6. The tape plays fine, I can see it on the Sony screen, and can monitor sound from the Panasonic. During the playback,
-
I have just downloaded pixel bender for CS5 and
I have just downloaded pixel bender for CS5 and know I get this message The image dimensions exceed the hardware capabilities of your GPU. What do I need to do to make it work
-
Can't Add Broker- Backup master broker??
Hi, I have just installed sun one message queue PE 3.0 on a new box. I activated the license to try out the enterprise edition. I then try to add a broker through the admin console and receive the following error in the DOS Administration screen. Exc