Some Qs about mappings generated by OWB 11.2
1. it is possible to setting OWB do not generate temp stage table (table in owb$temp_tables)
2. in some mapping I see pl\sql code
IF get_trigger_success THEN
Truncate_Stage_Tables;
NULL;
END IF;
but in others only
Truncate_Stage_Tables;
NULL;
how I can it control?
Hi
I don't think there is any option for the dimensional mappings that get generated to not have the staging tables, the best you can do is call the truncate_stage_tables procedure afterwards to clear any data. The tables were needed to provide some of the hierarchy management and loading functionality.
Cheers
David
Similar Messages
-
Some advise on 'WHERE EXISTS' in OWB.
Hello :-) me again.
I have read a number of topics regarding 'WHERE EXISTS' statment and OWB... got confused so i thought i ask your option.
OWB 10 r2.0.1.31 paris/windows
I need to tune one of my maps - nothing fancy, just a simple delete:
I need to delete values from tables A if they are equeals to the values in table B.
Both of my tables have index on matching fields, however it is non unique index and there is no primary or unique key on the tables that i could use. Both tables are not that big either - table A just under 1mil records and table B about 300K records/
So i created simple map -
Mapped table B to table A, set loading type for table A to delete, set 'Match column when deleting' on the matching column .The map was validated without any problems, the tests on a small data set were fine and bob's my uncle!
However, when i submitted the map with 'real' tables - it took a very long time to run (over an hour). I have other more complex maps (and loads of them) and everything is ticking nicely! so what is the problem with this map?
The code generated by OWB for the delete statment as follows:
DELETE FROM TABLE_A
WHERE TABLE_A.MATCH_COL = TABLE_B_MATCH_COL
and it does take ages to run from TOAD.
So i tried running
DELETE FROM TABLE_A a
WHERE exists (select n.MATCH_COL from TABLE_B n
where a.MATCH_COL = n.MATCH_COL)
it took no time at all.
Now how do i have to construct my map in order for OWB to generate WHERE EXISTS code? Is it better to use lookup or set operator? outer join? which one of them would be WHERE EXISTS?
I have another map set up identically but with larger numbers (over 70 mil records in table A). it has been running sinse yesterday lunch time! So any help/thoughts/suggestions on this matter would be greatly appreciated.
Thank you very much
Kind Regards
Vix
nullHi Ed.
Thank you very much for your reply - greately appreciated!
I did look into TOAD when trying to 'tune' it before askling for help. The query does gazzilion tables scans (from Long Ops in TOAD), the main reason why it takes forever is 'db file scattered read' (from waits in TOAD). I checked this job first thing this morning and it's still running!
I have been using OWB Paris for the past year or so and i don't know everything there is not know about it. So i don't know how to make it to produce the code with 'WHERE EXISTS' instead of
DELETE FROM "TABLE A"
WHERE ( "TABLE A.MATCH_COL IS NULL AND :b1 IS NULL
OR "TABLE_A.MATCH_COL" = :b2)
I tried putting non-unique index on MATCH_COL of table A, and put unique index on matching column in table B (ensured that there are no duplicates in table B etc) but oracle pessimiser decided not to use it and i don't really know if the hints are working in OWB and how to make them work with OWB code (i pressume just putting them in the code as normal or is there a 'special' way of doing it?!).
I think i am just going to wrap up my statment in a procedure and just execute the procedure within OWB. I wanted to avoid doing so as i like the auditing granularity with OWB (and if it is a procedure it just calls it, executes it and that's it).
Once again thank you very much for all your help with this issue. May be someone else would have some other ideas how to make it work in OWB? If i manage to improve the performance with this particular map - i will post it here, just in case someone else is having the same problem.
Kind Regards
Vix
Message was edited by:
Vix
- I am takling about my second job that is still running - table A has over 70 mil records and table B has over 600K records. -
Hi ALL
I am facing one diffculty about using hints in OWB. Through the mapping configuration, i am trying to use INDEX hint for my table. The generated code is correct, but is a very redundant code. Hint is repeating multiple times in the sub query. Below is the sample:
SELECT
/*+ INDEX ("My_Table1") INDEX ("My_Table2") */
Column1,
Column2,
Column3,
Column4,
Column5,
Column6,
Column7,
Column8
FROM
( SELECT
/*+ INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2") INDEX ("My_Table1") INDEX ("My_Table2")
Column9,
Column10,
Column11,
Column12
FROM
( SELECT .....
The text under the hint ("My_Table1") INDEX ("My_Table2") is repeating again and again. Any way of controlling the code being generated..?From a performance standpoint, using hints in that manner may cause poorer performance than without. The INDEX (table_name) hint directs the optimizer to evaluate all relevant indexes. It is very easy to build an example where your column of interest is the last column in a multicolumn index and have a query perform worse than what a full table scan would produce. Oracle's recommendation is to "use hints sparingly" and that is for good reason.
-
Some questions about javacard 2.1.1 and smartcardio
Hello i have some question about java card 2.1.1 and the smartcardio package.
1.) I want to sign a message with the Signature.ALG_RSA_SHA_PKCS1 algorithm. I use the following code in the applet to sign the message:
final static byte P1_CREATION_MODE = (byte) 0x01;
final static byte INS_SIGN_MODE = (byte) 0x60;
final static byte SmartCard_CLA = (byte) 0xB0;
private void signMessage(APDU apdu) {
byte[] buffer = apdu.getBuffer();
byte byteRead = (byte) (apdu.setIncomingAndReceive());
signature.init(privateKey, Signature.MODE_SIGN);
short length = signature.sign(buffer, ISO7816.OFFSET_CDATA, byteRead, buffer, (short) 0);
apdu.setOutgoingLength((short) length);
apdu.sendBytesLong(buffer, (short) ISO7816.OFFSET_CDATA, (short) length);
apdu.setOutgoing();
}On the host side I use the following code to connect to the card and to send the sign apdu:
if (TerminalFactory.getDefault().terminals().list().size() == 0) {
LOGGER.log(Level.SEVERE, "No reader present");
throw new NoSuchCardReader();
/* Select the first terminal*/
CardTerminal terminal = TerminalFactory.getDefault().terminals().list().get(0);
/* Is a card present? */
if (!terminal.isCardPresent()) {
LOGGER.log(Level.SEVERE, "No Card present!");
throw new NoSuchCard();
/* Set the card protocol */
Card card = terminal.connect("*");
ATR atr = card.getATR();
LOGGER.fine(getHexString(atr.getBytes()));
LOGGER.fine(getHexString(atr.getHistoricalBytes()));
CardChannel channel = card.getBasicChannel();
CommandAPDU cmd = new CommandAPDU((byte) 0xb0, (byte) 0x60, (byte) 0x01, (byte) 0x00, new String("datadatdatadata").getBytes(), (byte) 0x40);
ResponseAPDU response = channel.transmit(cmd);
card.disconnect(false);But this does not work and i got the following error
javax.smartcardio.CardException: sun.security.smartcardio.PCSCException: Unknown error 0x8010002f
at sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:202)
at sun.security.smartcardio.ChannelImpl.transmit(ChannelImpl.java:73)
at de.upb.client.smartmeter.SmartMeter.initSmartCardApplet(SmartMeter.java:114)
at de.upb.client.smartmeter.SmartMeterApplikation.main(SmartMeterApplikation.java:39)
Caused by: sun.security.smartcardio.PCSCException: Unknown error 0x8010002f
at sun.security.smartcardio.PCSC.SCardTransmit(Native Method)
at sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:171)
... 3 more2.) 3Des encryption
I want to use the 3Des algorithm to encrypt my data. I use
keyDES = (DESKey) KeyBuilder.buildKey(KeyBuilder.TYPE_DES,
KeyBuilder.LENGTH_DES3_2KEY, false);
cipherDES = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M2, false);But i do not know what is the aquivalent on the host side??
3.) Another problem is that i am not able to send the modulus of a public key from the host applikation to the smard card
new CommandAPDU((byte) 0xb0, (byte) 0x20, (byte) 0x01, (byte) 0x00, modulus.toByteArray()); // create the apdu
// the method in the applet
private void setServerKeyMod(APDU apdu) {
byte[] buffer = apdu.getBuffer();
try {
byte byteRead = (byte) (apdu.setIncomingAndReceive());
short off = ISO7816.OFFSET_CDATA;
// strip of any integer padding
if (buffer[off] == 0) {
off++;
byteRead--;
publicKeyServer.setModulus(buffer, off, byteRead);
} catch (APDUException ex) {
ISOException.throwIt((short) (SW_APDU_EXCEPTION + ex.getReason()));
}The error code is 6700
4.) My last problem ist, that i am not able to use a value bigger than 0x7F as the ne field in the apducommand, because i get the following error
CommandAPDU((byte) 0xb0, (byte) 0x60, (byte) 0x01, (byte) 0x00, data, (byte) 0xff);
java.lang.IllegalArgumentException: ne must not be negative
at javax.smartcardio.CommandAPDU.<init>(CommandAPDU.java:371)
at javax.smartcardio.CommandAPDU.<init>(CommandAPDU.java:252)I thought that it this should be possible in order to use all the bytes of the response apdu.
If you need more code to help please let me know.
Cheers
Edited by: 858145 on 06.07.2011 08:232) What is PKCS? what is the difference between
PKCS#11 and PKCS#15??PKCS is the abbreviation of "Public-Key Cryptography Standards"
PKCS #11: Cryptographic Token Interface Standard
See http://www.rsasecurity.com/rsalabs/node.asp?id=2133
PKCS #15: Cryptographic Token Information Format Standard
http://www.rsasecurity.com/rsalabs/node.asp?id=2141
If you want to use yor smartcard as secure token it doesn't have to be a JavaCard.
BTW: I don't remember a way to access PKCS#15 tokens on a JavaCard from within an oncard JavaCard program. If you want to use keys in your oncard program, you have to transfer it onto the card or generate it oncard and export the public key by your own oncard/offcard code.
Jan -
Woudl you please give me some meterial about general HR operations?
Hi experts :
would you please give me some meterial about general HR operations and configuraions
Thank you very much.Transaction Code:-OH00
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
Transaction Code:-OH00
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
Transaction Code:-OH00
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
Transaction Code:-OH00
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
Transaction Code:-OH00
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
Transaction Code:-PE03
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Check Default Payroll Area
Transaction Code:-PA03
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
Transaction Code:-PA03
Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayDefine EE Sub Group Grourping for PCR and Collective Agreement Provision
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayDefine Reason for Change
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Type
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Area
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayCheck Assignment of PayScale Structure to Enterprise Structure
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayDetermine Default for PayScale Data
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PaySetup Payroll Period for Collective Agreement Provision
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayDefine PayScale Salary ranges
Transaction Code:-OH11
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
Transaction Code:-OH11
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type Group Basic Pay
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Text
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Entry Permissibility Per Infotype
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Employee Sub Group Grouping for Primary Wage
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Personnel Sub Area Grouping for Primary Wage Type
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionDefine Reason for Change
Transaction Code:-OH11
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
Transaction Code:-OH11
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type Group Recurring Payments and Deduction
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type text
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Entry Permissibility Per Infotype
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Personnel Area Grouping for Primary Wage Type
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
Transaction Code:-OH00
Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Define Reasons for Changes
Transaction Code:-OH11
Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
Transaction Code:-OH11
Personnel Management Personnel AdministrationPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type Group Additional Payments
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Entry Permissibility for Additional Payments
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
Transaction Code:-OH13
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
Transaction Code:-OH00
Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
Transaction Code:-PA03
Payroll Payroll IndiaBasic SettingsPayroll OrganizationCheck Payroll Accounting Area
Transaction Code:-OG00
Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Payroll Periods
Transaction Code:-OH00
Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Payroll PeriodsCheck Date of Payday
Transaction Code:-OG00
Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Calender for Cumulation
Transaction Code:-OH00
Payroll Payroll IndiaPayscale GroupingsDefine Payscale Groupings for Allowances
Transaction Code:-OH00
Payroll Payroll IndiaPayscale GroupingsAsssign Payscale Groupings for Allowances
Transaction Code:-OH00
Payroll Payroll IndiaBasic Salary for IndiaAsssign Basic Wage Types to Groupings for Allowances
Transaction Code:-OH00
Payroll Payroll IndiaBasic Salary for IndiaAsssign Basic Wage Types to Groupings for Allowances
Transaction Code:-OH00
Payroll Payroll IndiaBasic Salary for IndiaAssign Basic Codes for Allowance Groups
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksAssign Wage type Model for Payscale Grouping for Allowances
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Default Wage Types for Basic Pay
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Wage Types Characteristics
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Wage Types Characteristics
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain PayScale Groups and Levels.
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain PayScale Groups and Levels
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Valuation of Basic of Basic Wage Type
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Allowance Rules Based on Slabs
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
Transaction Code:-OH00
Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
Transaction Code:-OH00
Payroll Payroll IndiaCompany LoansMaster DataCreate a Loan Type
Transaction Code:-SPRO
Payroll Payroll IndiaCompany LoansMaster DataAssign Repayment Type
Transaction Code:-SPRO
Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
Transaction Code:-SPRO
Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
Transaction Code:-SPRO
Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
Transaction Code:-OH00
Payroll Payroll IndiaCompany LoansMaster DataMaintain Loan Eligibility Checks and Limits
Transaction Code:-SPRO
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemEmployee Grouping and Symbolic AccountsDefine Employee Grouping Account Determination
Transaction Code:-SPRO
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemEmployee Grouping and Symbolic AccountsDefine Symbolic Accounts
Transaction Code:-OH02
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesDefine Posting Characteristics for Wage Types
Transaction Code:-OH02
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesDefine Posting Characteristics for Wage
Transaction Code:-OG00
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesMaintain Posting Periods for Payroll Periods
Transaction Code:-OH00
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesMaintain Posting Periods for Payroll Periods
Transaction Code:-SPRO
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemCreate Posting Variants
Transaction Code:-OBYE
Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Expense Accounts
Transaction Code:-OBYE
Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemAssigning AccountsAssign Expense Accounts
Transaction Code:-OBYG
Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Balance Sheet Accounts
Transaction Code:-OBYG
Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Balance Sheet Accounts
Transaction Code:-OG00
Payroll Payroll IndiaReporting for Posting Results to AccountingCheck Customizing for Account Determination
Transaction Code:-OG00
Payroll Payroll IndiaReporting for Posting Results to AccountingCheck Customizing for Account Determination
Transaction Code:-SPRO
Payroll Payroll IndiaPayroll CalenderDefine Schedule for Payroll Calender
Transaction Code:-SPRO
Payroll Payroll IndiaPayroll CalenderDefine Schedule for Payroll Calender -
I need some information about File Download & File Upload
Hi All,
Can any one help me on this, I need some information about File Download & File Upload.
I read tutorial abt file upload and download but some of methods in tutorial are deprecated so i need clear information abt File upload and Download, if possible Code examples.
Thanks
Ragards
Ravi GollaHi Ravi
Check out thses links for examples:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
/docs/DOC-8661#22 [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
Otherwise you can simply follow this code for file download
Use the code like this.
1) Create the button and bind the action for it.
2)then write this code in the action.
3) do not write any thing in the init method.
try {
final byte[] content = this.getByteArrayFromResourcePath("C:
xyz.properties");
final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.UNKNOWN);
try {
final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getAbsoluteURL(), "WD_Filedownload", false);
window.open();
catch(Exception e)
wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
5) writr the method getByteArrayFromResourcePath
//@@begin others
private byte[] getByteArrayFromResourcePath(String resourcePath)
throws FileNotFoundException, IOException {
FileInputStream in = new FileInputStream(new File(resourcePath));
ByteArrayOutputStream out = new ByteArrayOutputStream();
int len;
byte[] part = new byte[10 * 1024];
while ((len = in.read(part)) != -1) {
out.write(part, 0, len);
in.close();
return out.toByteArray();
//end
Similarly for file upload
Similarly for upload in to server path also do the same
IWDAttributeInfo attInfo =
wdContext.getNodeInfo().getAttribute("upload");
binaryType =
(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
uploadedName = binaryType.getFileName();
File filename =new File("
<server name>
<folder name>
"+uploadedName ); );
try {
FileOutputStream out = new FileOutputStream(filename);
out.write(b);
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace(); -
Sharing some info about Export dumps
Just to share some info about exports happenig in our system
I have a 20GB Database but the dump size is 10GB it keeps growing..the data too grows but the dump has also getting increased significantly...
Has anyone seen encountered soemthing like this...
Strange but to live with it
Oracle 8i on Win2kIs this your Production Database? Did you schedule this export? During peak/off peak business hours? Production
Yes
Off Peak hours
Apart from this export, what database backup procedure you have in place? Full Backups/Incremental all in place
You said, you take export regularly as part of procedure. Is this a strange behavior today or did you observe this previously as well??I have been observing since i joined this company.It was 14GB and Dump was around 7 ..now the DB is 20GB and dump is around 10GB
I was just thinkking for a TB database how much the export would be...:)
Adding on i had a 100Gb db generating 8Gb dump...Looked strange..)BUt that 100GB did not have so amny objects like what i have now...
Thanks -
Some questions about configuration in MAX.
Hello,everyone!
I have some questions about configuration in MAX(I am a jackaroo for motion control development),I hope I can get your help.
I use PCI-7344+UMI-7764+Servo amplifier+Servo motor,my MAX version is 4.2 and I use NI-Motion7.5
My question as following:
1,In Axis Configuration,for motor type,why I must select stepper but not servo?my motor is servo motor!If I select Servo,my motor can't run,I don't know why.
If I select stepper,though motor can work but I can't test encoder in MAX.
2,In Stepper settings,for stepper loop mode,why I must select open-loop but not close-loop?If I select close-loop,the servo motor doesn't work too.
3,If I want my two servo motors run at different velocity,How shoud I do?It seems I just can set the same velocity in MAX for my two servo motors.
My English is poor,Pls pardon me!I come from China.
Thank you for your help!
EnquanLi
Striving is without limit!Hi,Jochen,
Thank you for your kindly help!
The manufacturer of the drive and motor that I am using now is Japan SANYO DENKI,drive type is RS1A01AA,motor type is R2AA06020FXP00.
And I use position control mode,thehe encoder's counts per revolution is 131072.I set the electronic gear ratio to 1:1 for drive.
Now,I can use Close-Loop to control the motor but still has some problems.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.The detail situation is as following
1,Motor can't run.
2, Or motor moves to a position, then moves in the same direction agian and eventually stops.
Except for the two points mentioned above,"Following Error" is occured frequently,I don't know why.
I am still not clear why I must set the motor type be stepper in MAX .
And I have another question:what the relationship between the steps and the counts?They have the proportion relations?I notice that there are a section said like this in help document: For proper closed-loop and p-command operation, steps per revolution/counts per revolution must be in the range of 1/32,767 < steps/counts < 32,767. An incorrect counts to steps ratio can result in failure to reach the target position and erroneous closed-loop stepper operation.
I am verry sorry I have too many questions!
I am very appreciate for your kingly help!Thanks again!
EnquanLi
China
Striving is without limit! -
Some questions about the integration between BIEE and EBS
Hi, dear,
I'm a new bie of BIEE. In these days, have a look about BIEE architecture and the BIEE components. In the next project, there are some work about BIEE development based on EBS application. I have some questions about the integration :
1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?
2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?
3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?
4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?
could anyone give some guide for me? I'm very appreciated if you can also give any other information.
Thanks in advance.1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?You, shud consider OBI Application here which uses OBIEE as a reporting tool with different pre-built modules. Both 10g & 11g comes with different versions of BI apps which supports sources like Siebel CRM, EBS, Peoplesoft, JD Edwards etc..
2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?Its independent of any soure. This is OBIEE modeling to create RPD with all the layers. If you build it from scratch then you will require to create all the layers else if BI Apps is used then you will get pre-built RPD along with other pre-built components.
3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?BI apps comes with pre-built ETL mapping to use with the tools majorly with Informatica. Only BI Apps 7.9.5.2 comes with ODI but oracle has plans to have only ODI for any further releases.
4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?User will still see old data because its good to turn on Cache and purge it after every load.
Refer..http://www.oracle.com/us/solutions/ent-performance-bi/bi-applications-066544.html
and many more docs on google
Hope this helps -
can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?
All I can say is that I REALLY like my Touch 4th gen because I have all sorts of capabilities in a small form: e-mail, web browsing, news, weather, books, magazines, etc. etc. Plus lots and lots of apps out there, including so many free ones. I use the Cloud a lot so it's great to have everything sync'd to my MacBookPro (e-mail, Evernote, Pocket, etc.)
It would be easier, though, to do some of this, especially magazines, on the iPad mini, but, again, I love the small size of the Touch.
As for the 5th gen instead of the 4th, the fifth has Siri and the 3D feature in maps, which are great. And I'm sure it's a lot faster in iOS 6 than the 4th gen. And cool colors!
Don't know if this helps . . . -
My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!
i have the same problem but i have ios 5.01. how do you unsync? please help, thanks
-
How can I contact or talk to some one about my bill
How can I contact or talk to some one about my billing, there are charges on my cc that I no nothing about can someone help me please.
Check your iTunes Store Purchase History (and that of any other AppleIDs which may have your CC linked... Partner / Child / Old AppleID accounts). Use iTunes Store & Mac App Store: Seeing your Purchase History and Order Numbers and a computer with iTunes installed (you can't see this info through the iTunes or App Store Apps on an iPad/iPhone/iPod Touch).
If the purchases are there in the Purchase History and you or a family member recognise them then it's up to you if you request a refund for accidental purchases via Email using http://www.apple.com/support/itunes/contact/ or accept the charges.
If however you find them but know it's not something you or someone else authorised to use the AppleID have bought, use the iForgot Website to reset your password, then go to the AppleID Website, sign in to Manage Your Apple ID then go to the Password and Security link on the left to change Security Questions then call AppleCare (0844 209 0611) to speak to iTunes Store Fraud as someone has hacked your AppleID. If you can find no record of the amounts which have come off the CC, call the Bank or Credit Card company and have them block the card and issue a new one as the details have been registered with another AppleID without your knowledge, THEN get in touch with AppleCare and speak to iTunes Store Fraud for a refund of the fraudulent purchases. -
Hello ,
I want to ask some question about ipads \
How powerful is the iPad?
How useful is it for reading books, newspaper or magazines or for surfing the web?
Can you identify any shortcomings of the device?
please help meit's less powerful than your average computer. THink of it like a netbook but with a better processor.
It'll do fine for surfing (although if you browse a lot of flash based sites you will need to get a third party browser since safari doesn't accommodate it)
You may do OK on reading books, papers or magazines, especially if they have apps, but the ipad's screen is backlit, so it doesn't work well outdoors and you may need to fiddle with the brightness so that you don't get eye strain (it's just like doing too much reading from a computer screen)
I would say the biggest short comings are data transfer. Apple's preferred work flow is that everything is done via iTunes or the internet....well people dont' always have 100% reliable always on internet access so you can find yourself in a situation where you can't get things on/off the iPad.
By and large, it's a good device for day to day stuff, but is not a computer replacement. -
Add "Trailing Nullcolls" to sql loader control files generated by OWB
Hi gurus,
I've got a problem loading data with SQL Loader. I need to add the parameter "trailing nullcols" into the SQL Loader control file generated by OWB. I don't want to do this by saving the skript on my hard disk and run it manually, so any ideas where I can put this parameter? I am using OWB 10.1 on a windows 2000 machine.
Thanks
StephanHi,
I found the solution to problem.
1; Select the mapping where you map your source flat file to a table.
2; Right click on the mapping and select "configure"
3; Go Sources and Targets -> YOUR_TABLE_NAME -> SQL*Loader Parameters
4; Set Trailing Nullcols = true :-)
Thank you to anyone looking at this problem.
Greetings
Stephan -
Need some info about getting started with the GE70 2PC Apache
Hi guys!
I'm about to getting the new GE70 2PC Apache gaming notebook from MSI and since I'm really putting alot of money in this I really wanna handle it gently :p So I got some questions about this, since It'll be the first time I'd but a gaming notebook.
1) 1st of all, what do I do when I've first started the laptop? Do I place in the CD and install all the newest drivers from that CD? Afterwards install an anti virus and then I should be good to go?
2) I heard the Haswell i7 processors from Intel produce a hell of a lot heat. When I turn on turbo fan and turbo boost and I reach temperatures of around 90°C, would it harm the hardware of my laptop? Could any damage take place? Or would my processor/graphic card have a shorter life expectancy?
3) The graphic card would be the GTX 850m. Now I'm wondering, is on this particular laptop -> (MSI-ge70-2pc-019be-apache-azerty), is the graphic card the DDR3 version or the GDDR5 version? Because I heard even the GTX 765m can outperform the 850m DDR3. But I also heard that the GDDR5 version of this graphic card is noticeably better than the 765M graphic card.
4)Is it wise to keep the processor going on turbo boost (3,4 Ghz) forever?
5) Will I have internet problems? I heard alot of people having internet problems with the killer lan drivers lately..
6) What laptop do you think I should pick in overall? The 2PC Apache version or the GE70 2OE version (the one without SSD) ?
8) My Brother has the GE70 2OE which has the 765m graphics card, but he only has around 60 fps when he's playing League Of Legends, and LoL isn't the most demanding game right.. The FPS sometimes even drops to 40 (even when he's ALONE with no one around him). It feels like his FPS is capped at 60? Because most of the time it's just 60. But when I look at the settings I saw the FPS is uncapped.. I believe with this graphics card he must atleast achieve a constant 70-80 fps on this game right? Might something be wrong in the settings of the graphics card?
7) Is there anything I should know before I start gaming on this laptop? (something I should do to have best performance or something..?)
GrtzWell...
1. When you get the laptop, use MSI Burn Recovery and make the backup disks (I prefer DVD's myself...). This way if something happens, you can reinstall all the software like you just bought it.
2. Haswell does produce quite a bit of heat. As long as you don't get much higher than 90C you should be ok. If you're getting into the high 90's or even 100C range, you probably need to replace the heatsink compound. MSI has had a number of issues with that aspect on notebooks. It is easily done though.
3. The only way to really answer that question is probably to contact MSI about it. >>How to contact MSI.<<
4. Turbo boost isn't really user controlled. I wouldn't worry about it.
5. You might have issues. I'm honestly not too sure. I know most people haven't had issues recently, but that's all relative. The drivers seem to be working rather well right now to be honest.
6. Depends what you want and what is available. Maybe the GE70 20E + buy an SSD will be cheaper than just buying the Apache version. I don't really know, but you could always look into it.
8. The 765M is a decent card....but remember, it's NOT the same as a 760 on a desktop. It's roughly equivalent to a 750 in the desktop world. That's not a bad card by any means, but you aren't going to be able to get 60+ FPS at 1920x1080 in many games. LOL is rather demanding as a game though to be perfectly honest. (throwing my personal opinion in on this, I always buy the highest end item I can in this case, because you won't be able to get any better really in the end until the next laptop comes out).
7. I would setup all your games in the NVidia control panel to use the NVidia high performance graphics processor. That way there is no confusion and it will use the right video card.
You don't really need to update drivers UNLESS you're having an issue (like BSoD's or game freezes or something similar).
The MSI customer service in the EU really seems to be hit or miss. Some people seem to get good service, some people get really crappy service. I'm honestly not sure what the problem is over there. =/
Maybe you are looking for
-
Won't detect full memory clock speed on DiMM 3-4
Hey guyz... got a little bit of a strange situation with my MSI K8N-F PCB 1.0 systemboard hope you can share you're knowledge on this... I got a 2x256MB VR Kingston DDR400 Single sided ram that I installed on DiMM 1-2 and was able to read the memory
-
UMB : Change in stock account hitting at the time of MIRO
Dear Experts , I have a material with a moving average price. The material was taken in stock in initial entry. in period 10. Then the material was consumed in period 11. Further the material was procured . The posting period in GR was 11 & the perio
-
N1 system manager installation faied (newer version of Java web console)
Hi, I am trying to install Sun N1 system manager on Solaris x86 U3 + all patches. Once I run the installer I got: N1SM Installer (version 1.3.2 on SunOS) 1. Install OS packages. [Completed] 2. Install Expect. [Completed] 3. Install IPMI tool. [Comple
-
WHAT DO I HAVE TO DO TO LOAD MOVIES ONTO ITUNES
Hello, I am trying to load movies from my computer into itunes so as i can watch them on my IPAD 2. I have converted them to MP4 but cannot get them to go into itunes. What am i doing wrong ?
-
IMovie 09 uses up 4GB of RAM in less than 2 minutes
Hi, The topic says it all i think.. To be honest i don't know if i had this issue before Snow Leopard i have only been using it for about a week. I have a MacBook Pro (Early 2008) 2.6GHz with 4GB RAM installed. I have never had any issues with the RA