Pkg tool return package detail information
I got a UltraSparc enterprise 2 server. When I try to reinstall solaris 8 on it. I found it is very hard to manage pkg information.
I get a lots of experience with Red Hat Linux system. RPM can return a detail information such as: installed files name and location by using rpm -ql <package name>.
When I try to get similar result from PKG tool from solaris by using pkginfo -l <package name>, I only got some high level information about that package, no any details.
So could any body tell me how I can get installed file's name and location in the system?
Best regards
Check this file
more /var/sadm/install/contents
Senthilkumar
Similar Messages
-
Returnable packaging a/c posting details
Hi All experts,
could any one of you let me know the correct table to find out the followings:
1. RP(returnable packaging) account header details.
2. RP account item level or transaction details like opening balance, closing balance, bill of lading, posting type, reference document number and etc.
3. Summary list of status of each RP material involved in RP account with RP partner.
4. Full listing of all movements per RP material account during the statement period.
Kinldy guide me for the above mentioned questions.
Thanks,
MarkHello Mark,
Returnable packaging is vendor's material and is not valuated in our valuation area so it will not have any accounting impact in our book.
Returnable packaging is maintained only on Qty based.
For more information, please refer the following link
http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b921143ad11d189410000e829fbbd/frameset.htm
regards
Arif Mansuri -
RP(Returnable packaging) account and transaction details
Hi All experts,
could any one of you let me know the correct table to find out the followings:
1. RP(returnable packaging) account header details.
2. RP account item level or transaction details like opening balance, closing balance, bill of lading, posting type, reference document number and etc.
3. Summary list of status of each RP material involved in RP account with RP partner.
4. Full listing of all movements per RP material account during the statement period.
Kinldy guide me for the above mentioned questions.
Thanks,
MarkHi Mark-
Try using RLACCT. -
Required detailed information on "Business Package for Buyer"
Hi All,
Can anyone provide more detailed information on <b>"Business Package for Buyer"</b> . I am basically looking for some <u>demo</u>, sales <u>presentation</u>, more on what the package is providing with screen shots to see the look and feel.
Regards,
VishalHi
It's basically an E-Portal solution, which covers majority of enhanced features. (E-procurement, etc)..
<u>Some Related links -></u>
http://www.sap.com/solutions/business-suite/srm/pdf/BWP_SupplierEnablement.pdf
http://www.sap.com/services/pdf/BWP_SAP_Best_Practices_for_Baseline_Package.pdf
http://www.sap.com/platform/netweaver/pdf/BWP_Portal_Content.pdf
http://download.sap.com/download.epd?context=642A6604589217F513EAAF63FC1EC17B4A0BCA320C09F96DDDBCD0C0AD46BCDE878D0DA7ED26956FC637FB082E4DD6D3D3D8890CECA87ABA
http://www.sap.com/solutions/business-suite/srm/pdf/yorkshirewater.pdf
http://www.sap.com/platform/netweaver/pdf/BWP_Security.pdf
http://www.sap.com/industries/professionalservices/pdf/CS_ESPRIT.pdf
http://www.sap.com/industries/millproducts/pdf/CS_CERATIZIT.pdf
http://www.sap.com/industries/professionalservices/pdf/SAP_Project_Res_and_Fin_Mgt.pdf
http://www.sap.com/solutions/pdf/Image.pdf
<i>Note -></i> Best place to search in it for more details using SAP Official website - <u>www.sap.com</u>
Regards
- Atul -
Returnable packaging-vendor and customer sides
Dear Experts,
I have searched through the internet as well as on this forum but I was not able to find the information I am looking for.
I have the following issue concerning the Returnable packaging process in SAP:
I need to gather overall information concerning the returnable packaging.
The process is as follows:
My vendor provides me with some materials that come with returnable packaging (e.g.Pallet01) -> Assuming I am just a middleman, I sell the goods to my customer and also send them on the same Pallet01 (one day my customer must return the pallet to me and I must return it to the vendor).
- What are the settings I must set in customizing and in material master?
- How would the process look like in the system (for example are there specific settings I must make to be able to see the packaging per customer in MB58 (I have set item category group LEIH in material master - is this the only setting to assure this, plus I am not sure if the field where I should put LEIH is General item category group or Item category group - both on Sales: sales org.2 tab in material master; Plus is there any way I can control what settings does item category group have? When I go to SPRO Sales and Distribution->Sales->Sales Document->Sales Document Item->Define Item Category Groups - there is no option to click inside the certain group))?
- In what report I can see how many Pallets I owe to the vendor and how many Pallets each customer should return to me (is there one report that would show everything or do I have to use separate reports)?
- How do I proceed if the vendor decides to invoice me for the pallets or I decide to invoice my customer (I would like to know the best practices)?
I tried to enter packaging from vendor to special stock type M (with move 501 M added to the goods receipt for PO), than it's working to see it in the stock report assigned to that particular vendor. But what if (and this is the case) I am selling the goods on the same packaging to my customer? Cause I am not able to add the pallets from special stock M to the outbound deliver.
Thank you in advance,
KrystynaDear Vikram Shukla,
In fact, my question is more related to how to link the returnable packaging with the vendor - raw materials combination (PIR), which for my understanding is more related to sourcing part.
Anyway, could you please advice how could I transfer my question to MM forum?
Many thanks in advance and best regards-
Mengyu -
Returnable packaging process-Vendor-Company-Customer
Dear SAP Gurus,
I have searched through the internet as well as on this forum but I was not able to find the information I am looking for.
I have the following issue concerning the Returnable packaging process in SAP:
I need to gather overall information concerning the returnable packaging. The info concerning returnable packaging in relation 'my company' - 'customer' is quite accessible, however what about the process from vendor's side?
The process is as follows:
My vendor provides me with some materials that come with returnable packaging (e.g.Pallet01) -> Assuming I am just a middleman, I sell the goods to my customer and also send them on Pallet01 (one day my customer must return the pallet to me and I must return it to the vendor).
- What are the settings I must set in customizing and in material master?
- How would the process look like in the system?
- In what report I can see how many Pallets I owe to the vendor and how many Pallets each customer should return to me (is there one report that would show everything or do I have to use separate reports)?
- How do I proceed if the vendor decides to invoice me for the pallets or I decide to invoice my customer (I would like to know the best practices)?
If there is an existing topic here (I was no able to find one) or any materials on the net I would be also grateful for the links.
Thank you in advance!Dear kevinthai ,
ex- create a po for 100 material send to vender then vendor send 100 materials to u then u migo finally stock is in ur plant ,
then u sold that material to customer that is SD come to the picture if customer send faulty material to you then u receive that material to send faulty store , that material u will check ur system it will track all movement , then u will get to know which vendor u procured the material then go to migo return to vendor put that po no which po u procured the materials ,enter it will display all material what ever material u procured at that time then select the material & quantity and save ,it will goes to vendor
before u should have customize MM-SD-FI integration
hope it will help you
Regards
shiv -
Inspection type for customer return of returnable package material
Hi Guys,
I send the returnable package to the customer , while reciving that material to my stock (when the customer return to me ) i want to create outbound delivery with out order refference .
I want system to create inspection lot after doing PGR of the outbound delivery .
The inspection lot sould have the option of result recording and stock posting when i do usage decission
This requirement not met by inspection type 06 , i want to create new inspection type to met above mentioned all requirement .
please provide the steps to be performed to met the same.
Thanks and regards
Thamizhchelvan GHi,
The 06 - Inspection type is not stock relevant and also it is not possible to change because it is SAP std.
1. If you want inspection for Customer with stock, active 05 - Inspection type in Material Master, and move the stock from customer return to QI by using MB1B with Movement type 457 Stock transfer returns to QI. After that system will create the Inspection lot in 05 Inspection type.
2. If don't want stock for inspection and directly post to Unrestricted using MB1B with movement type 453 Transfer posting to returns from customer to Unrest.
3. Customer return to Blocked stock using MB1B with mvt type 459 Stock transfer returns to blocked
Case2.
Inspection type 05 is a stock relevant inspection type.
To use 05 you must assign the 05 inspection type to the delivery item in configuration.
Follow this path.
Tcode vov6 - there will be schedule line category DN.
go to details of DN.In Business data, check which movement type is assigned here.
I think in your case it will be 651.
Change it to 655 and try now.
hope it will work.
Thanks
Vinay -
Manual posting for returnable packaging ( RL11)
Hi
Iam supplier of OEM
I have created returnable packaging account with following details
Location - My plant
Exchange partne - OEM (sold to party)
In relationship --
Main -- Type plant Location plant number / Exchange partner---- type customer - sold to part number
sub relationship -- Type plant Location plant number / Exchange partner---- type vendor-vendor number of OEM
I want to do manual posting after doing delivery to customer.
Please guide me about step by step inputs to be made in transaction RL11
Iam new to returnable packagingHello,
normally the posting should be made in background automatically when the packaging material is used in the delivery note.
To post a manual record, you need to insert at minimum the following in the RL11:
- Movement type 811
- Material number
- Quantity
- Reference (your delivery number)
company code
and the locations (e.g. plant and customer)
see attached screenshot.
If everything is correct you get a green check symbol at the beginning. -
Need detail information about Data Cleanse Transform.
Hi Every One,
I Need detail information about Data Cleanse Transform.
1. what is Local Cleansing Packages?
2. what are Directories and Dictioneries.
3. Data Cleanse Transform INPUT , OPTIONS, OUTPUT tabs and usage.
4. Details on Transform Input Field name in Data Cleanse INPUT tab.
5. What is PARENT_COMPONENT,FILED_NAME,FIELD_CLASS,CONTENT_TYPE in Data Cleanse OUT POT TAB.
I tried using "EnglishNorthAmericaDataCleanse" transform with NAME_OR_FIRM_LINE1. When I ran the job I got below warning message and my job was success full nut status it shown as failed.
Warning message:
"Trasform Data Cleanse is unable to retrieve cleansing packages from Cleansing Package Builder. Only local cleansing packages are available. Info: Unable to log on: Could not connect to server d184932040.sng1.attens.net:6400. Please check that the server name is correct, and that the server is running. "
Please make me understand, why did I get above message.
Thanks in Advance ...Hello,
Cleansing package is a reference file that contains content and rules around person, firm, title, phone data and so on. Cleansing package used to be referred to as dictionaries. Directories are usually referred to address reference data or address directories. The input, output and option tabs are similar to other Data Quality transforms. For detail information on what each of the input fields and output fields are and how the options work can be found in the Data Services’ Designer Guide (http://help.sap.com/bods).
The warning message you are getting is stating that Data Services is not able to connect to the server to check to see if you have made modifications to the PERSON_FIRM cleansing package. You are not required to make any changes to the PERSON_FIRM cleansing package, but can change rules or content based on your organizational rules. If you want to make changes you will need to install SAP Information Steward. If you would like to install SAP Information Steward you can find documentation for installation on the Help Portal, http://help.sap.com/bods, along with some great Videos.
You can also find some great Data Services Product Tutorials on the SAP Community Network, at http://scn.sap.com/docs/DOC-54115.
Thank you,
Lynne Lintelman -
Urgent- returnable packaging issue
Hi guys,
am working on returnable packaging issue
Scenario:If the customer does not returns the preslings then sales order is created for presling and issued to customers with proper invoicing
am creating a sales order with order type CLN(customised for returnable packaging) and i have give material with qty 1, immediately the system is taking me to availability overview screen where it shows the following.
Confirmed quantity: 0
Dely proposal: Not possible.
i have checked for material in MMBE and see the stock is much sufficient. y am i getting this? please answer immediately.
thanks in advance.
kumar.Hi pathik,
the system is already configured and i have to give UAT to the users. i have done according to what UAT says. now plz suggest me what i should i do in this scenario? moreover, shld i use two line items i mean the main item and also the sub item? this is the first time am working on returnable packating so plz help me in as detail as possible.
u can also plz send me the doc with screen shots(if possible) to this id
[email protected]
thanks in advance.
kumar -
Using Sun Appserver 7 deploy tool to package 2 ejbs and their clients
I have a question on how to package two beans into one distributable jar file and also provide the two associated test clients - each in its own jar file. Any help or suggestions would be very much appreciated. This is what I'm trying to do:
I am using the deploy tool that is packaged with Sun One Application Server 8.2. I currently have two stateless session beans deployed to a J2EE 1.4 Sun One Application Server and a test application client for each bean. For each bean, I created a j2ee application (ear) file and packaged the EJB JAR file containing the bean's classes and deployment descriptor, and an application client. I followed the steps as outlined in Sun�s ConverterApp example in their j2ee tutorial. (The example is from chapter 24 in the j2eetutorial14 � example ejb/converter) Upon deploying, the tool returns a client jar file that you can then use to call the bean. I have been able to successfully execute both beans in this manner.
Now, for distribution, I need to package both of the beans in one jar file and also provide a separate jar file for each test client, but I don�t see how to use the deploy utility to do this. Can anyone suggest what would be the best (fastest) way to do this? Any help would be very much appreciated. Thanks.The code and ejb-jar.xml look ok to me. Try checking the server.log to see if there were any deployment errors.
What exact class is the lookup code from your note defined in, com.sun.some.someEJB?
--ken -
Custmer return packaging matl with valuated SIT
Hi Experts
we have a sales order with FG as first line item and cylinder as second line item (cust. returnable packaging item).
We use valuated SIT process.
Upon entering VLPOD, the cylinder gets posted as goods issued item in stead of posting as special stock at customer (retn.pkg item).
Is there any notes or work around to get the stock in transit posted to return, pkg item.
regards
ramSivaYou can copy LEIH and create your own Materia Type say ZLEI. For this material type you can have only General Plant / Storage Data1 view enabled.
Remember, there are 2 materials here:
1. Gas
2. Returnable packaging (cylinder)
You can receive gas on unit basis if you dont want exact tracking (ie in KG). Use any procurement material type.
When you create the PO only mainitan Gas as the material.
When you do the goods receipt against this PO, Click on RTP button, this will create a new line item, automatically and will suggest movement type 501+M. Here enter the no. of cylinders.
You will be able to track the movement of cylinders. -
Where can I get detailed information on using new 2.2 features/upgrades?
For example, the new Return to Home feature in Safari. I don't get this one at all. Pushing the Home button while browsing in Safari takes me to the regular Home (menu) page like it always did. Since I can't find any instructions or detailed information for this feature I don't have a clue as to what I'm supposed to do/see. One would think that every new feature/upgrade in version 2.2 would be adequately explained somewhere. ??
I guess I should explain it better. I know that if I'm in a app and hit the Home button it will take me make to the Main Menu screen. What's happening is that if I on, say, page 3 of a website and hit the Home button, it takes me all the way back to the Main Menu screen. I expected, based on what I've read about this new feature, that if I was a page 3 of a website and hit the Home button that it would take me to the first page of the website. I'm just really confused about this new feature as it doesn't seem to do anything that I'm noticing.
?? -
OracleDataAdapter returning incorrect schema information
Hi everyone. I have a very reproducible case where the DataTable schema created by the OracleDataAdapter is incorrect. It is driving me crazy :-).
====================
OracleConnection cnn = new OracleConnection("User ID=XXX;Password=XXX;Data Source=XXX");
cnn.Open();
string strQuery = "CREATE TABLE FOO (a INT, b INT)";
OracleCommand cmdExec = new OracleCommand(strQuery, cnn);
cmdExec.ExecuteNonQuery();
OracleCommand cmdQuery = new OracleCommand("SELECT * FROM FOO", cnn);
OracleDataAdapter adp = new OracleDataAdapter(cmdQuery);
DataTable dtb = new DataTable();
adp.Fill(dtb);
Console.WriteLine("FOO has {0} columns.", dtb.Columns.Count);
for (int i = 0; i < dtb.Columns.Count; i++)
Console.WriteLine("{0}th column's name is {1}.", i, dtb.Columns[ i ].ColumnName);
cmdExec.CommandText = "DROP TABLE FOO";
cmdExec.ExecuteNonQuery();
cmdExec.CommandText = "CREATE TABLE FOO (c INT, d INT, e INT)";
cmdExec.ExecuteNonQuery();
dtb = new DataTable();
adp.Fill(dtb);
Console.WriteLine("FOO has {0} columns.", dtb.Columns.Count);
for (int i = 0; i < dtb.Columns.Count; i++)
Console.WriteLine("{0}th column's name is {1}.", i, dtb.Columns[ i ].ColumnName);
cnn.Close();
Console.ReadLine();
=============================
The console output is:
FOO has 2 columns.
0th column's name is A
1th column's name is B
FOO has 2 columns.
0th column's name is A
1th column's name is B
But it should be:
FOO has 3 columns.
0th column's name is C
1th column's name is D
2th column's name is E
for the second iteration.
What should I do?
-- MattI agree with the earlier comment stating '...that the caching is happening inside of the ODP layer rather than a lower layer such as OCI. It looks like the caching is occurring in the m_metaData member of the OracleCommand...'.
It looks like all of the caching is indeed taking place in ODP. However there is in fact two levels of cache taking place in your particular example - at the OracleCommand level but also deep inside ODP.Net there is a static MetaData class which has a private member m_pooler that maintains a metadata cache on a per connection basis. Basically even if the OracleCommand object entry m_metaData is reset values still appear inside the internal pool and so there need to be removed too - this cache is indexed initially through a hash of the connection details and then statement text. This is why even a new OracleCommand object but with same statement text on same connection also returns incorrect information.
Within the OracleReader implementations various calls are made to MetaData.Pooler.Get.. calls to retrieve cached information.
I came across a similar problem (not identical) because we are using the 'alter session set current schema...' command and this causes some problems.
Basically it appears a base assumption has been made that the definition of object will not change at runtime (which you can understand) but in my case it is possible that 'select * from emp' say could be execute from the same connection but relate to different objects because name resolution has been adjust using the 'alter session...' command which is a big problem.
I have written some helper routines which enable the internal caches to be 'managed' although it uses some nasty reflection to accomplish this (using private members directly!). It work successfully in my case and I have done a quick change to your example code (added a single call) and it now works, i.e.
cmdExec.CommandText = "CREATE TABLE FOO (c INT, d INT, e INT)";
cmdExec.ExecuteNonQuery();
OracleMetaDataRemover.Remove(cmdQuery, true);
dtb = new DataTable();
adp.Fill(dtb);
If you use the Remove method above and change true to false you will still receive the problem because although the Command has been cleared the details still remain centrally.
The code which accessed above I include below as is (coded for Oracle 10.1.0.3.01 ODP - it may work on other releases but note this could break in future). Ideally methods are required within ODP to allow cleardown/control of this.
using System;
using System.Reflection;
using System.Collections;
using Oracle.DataAccess.Client;
namespace Oracle.DBUtilities
/// <summary>
/// Summary description for OracleMetaDataPoolerCleaner.
/// </summary>
public class OracleMetaDataPoolerCleaner
private static string OracleAssemblyShortName = "Oracle.DataAccess";
private static string OracleMDType = "Oracle.DataAccess.Client.MetaData";
private static string OraclePoolerType = "Oracle.DataAccess.Client.Pooler";
// Fast access pointer to internal hash of information
private Hashtable PooledItems = null;
private static OracleMetaDataPoolerCleaner _oracleMetaDataPoolerCleanerInstance = null;
static readonly object _syncRoot = new object();
private OracleMetaDataPoolerCleaner()
Assembly OracleDataAccess = null;
// Get hold of the Oracle Data Access assembly
Assembly[] LoadedAssemblyList = AppDomain.CurrentDomain.GetAssemblies();
for(int i=0; i<LoadedAssemblyList.Length && OracleDataAccess == null; i++)
Assembly LoadedAssembly = LoadedAssemblyList;
string[] AssemblyNameDetails = LoadedAssembly.FullName.Split(',');
if (AssemblyNameDetails[0] == OracleMetaDataPoolerCleaner.OracleAssemblyShortName)
OracleDataAccess = LoadedAssembly;
// Make sure located details
if (OracleDataAccess != null)
// Get access to the MetaData cache details
Type OracleMetaData = OracleDataAccess.GetType(OracleMetaDataPoolerCleaner.OracleMDType);
if (OracleMetaData != null)
// Retrieve static pool item
FieldInfo f_Pooler = OracleMetaData.GetField("m_pooler", BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static);
if (f_Pooler != null)
// As we cannot get direct access to the object type assume it is OK
object pa = f_Pooler.GetValue(null);
if (pa != null)
Type OraclePooler = OracleDataAccess.GetType(OracleMetaDataPoolerCleaner.OraclePoolerType);
if (OraclePooler != null)
FieldInfo f_Pools = OraclePooler.GetField("Pools", BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static);
PooledItems = f_Pools.GetValue(pa) as Hashtable;
if (PooledItems == null)
throw new InvalidOperationException("Unable to initialise metadata cache access...");
public static OracleMetaDataPoolerCleaner Instance()
// Make single copy of this item ready for use
if (_oracleMetaDataPoolerCleanerInstance == null)
// Thread safe locking and initialisation - 'double-checked lock'
lock(_syncRoot)
if (_oracleMetaDataPoolerCleanerInstance == null)
_oracleMetaDataPoolerCleanerInstance = new OracleMetaDataPoolerCleaner();
return _oracleMetaDataPoolerCleanerInstance;
/// <summary>
/// Using reflection the process determines the command text
/// contents of the specified OracleCommand
/// Note this could simply have been delegated through to the
/// OracleConnection version using OCommand.Connection
/// </summary>
/// <param name="OCommand">OracleCommand object containing command to be retrieved</param>
/// <returns>Command string located</returns>
public static string CommandText(OracleCommand OCommand)
string OracleCommandCommandText = null;
// Using reflection get direct access to the 'private' member details..
Type TypeOracleCommand = OCommand.GetType();
FieldInfo FieldInfoCommandText = TypeOracleCommand.GetField("m_commandText", BindingFlags.NonPublic|BindingFlags.Instance);
if (FieldInfoCommandText != null)
OracleCommandCommandText = FieldInfoCommandText.GetValue(OCommand).ToString();
return OracleCommandCommandText;
/// <summary>
/// Using reflection the process determines the command text
/// contents of the specified OracleCommand
/// </summary>
/// <param name="OReader">OracleDataReader object containing command to be retrieved</param>
/// <returns>CommandString located</returns>
public static string CommandText(OracleDataReader OReader)
string OracleDataReaderCommandText = null;
// Using reflection get direct access to the 'private' member details..
Type TypeOracleDataReader = OReader.GetType();
FieldInfo FieldInfoCommandText = TypeOracleDataReader.GetField("m_commandText", BindingFlags.NonPublic|BindingFlags.Instance);
if (FieldInfoCommandText != null)
OracleDataReaderCommandText = FieldInfoCommandText.GetValue(OReader).ToString();
return OracleDataReaderCommandText;
/// <summary>
/// Using reflection the process determines the hashvalue
/// specified OracleConnection
/// </summary>
/// <param name="OConnection">OracleConnection for which the HashCode is to be retrieved</param>
/// <returns>HashValue located or -1</returns>
public static int ConnectionStringHashValue(OracleConnection OConnection)
int HashValue = -1;
// Using the Oracle Connection retrieve the hashvalue associated
// with this connection
if (OConnection != null)
Type TypeOracleConnection = OConnection.GetType();
FieldInfo f_ConStrHashCode = TypeOracleConnection.GetField("m_conStrHashCode", BindingFlags.NonPublic|BindingFlags.Instance);
if (f_ConStrHashCode != null)
HashValue = Int32.Parse(f_ConStrHashCode.GetValue(OConnection).ToString());
return HashValue;
/// <summary>
/// Using reflection the process determines the hashvalue
/// specified OracleDataReader
/// </summary>
/// <param name="OReader">OracleDataReader for which the associated connection HashValue is to be located</param>
/// <returns>HashValue located or -1</returns>
public static int ConnectionStringHashValue(OracleDataReader OReader)
int HashValue = -1;
// Using reflection get direct access to the 'private' member details..
Type TypeOracleDataReader = OReader.GetType();
FieldInfo f_OraConnection = TypeOracleDataReader.GetField("m_connection", BindingFlags.NonPublic|BindingFlags.Instance);
// Ensure have access to a connection and retrieve has information
if (f_OraConnection != null)
OracleConnection ConnectionValue = f_OraConnection.GetValue(OReader) as OracleConnection;
HashValue = OracleMetaDataPoolerCleaner.ConnectionStringHashValue(ConnectionValue);
// Return the hashvalue information located
return HashValue;
/// <summary>
/// Using reflection the process determines the hashvalue
/// specified OracleCommand
/// Note this could simply have been delegated through to the
/// OracleConnection version using OCommand.Connection
/// </summary>
/// <param name="OCommand">OracleCommand for which the associated connection HashValue is to be located</param>
/// <returns>HashValue located or -1</returns>
public static int ConnectionStringHashValue(OracleCommand OCommand)
int HashValue = -1;
// Using reflection get direct access to the 'private' member details..
Type TypeOracleCommand = OCommand.GetType();
FieldInfo f_OraConnection = TypeOracleCommand.GetField("m_connection", BindingFlags.NonPublic|BindingFlags.Instance);
// Ensure have access to a connection and retrieve has information
if (f_OraConnection != null)
OracleConnection ConnectionValue = f_OraConnection.GetValue(OCommand) as OracleConnection;
HashValue = OracleMetaDataPoolerCleaner.ConnectionStringHashValue(ConnectionValue);
// Return the hashvalue information located
return HashValue;
/// <summary>
/// Using the supplied OracleDataReader internal calls are made
/// to determine the ConnectionHash and CommandText details which will
/// then be used to remove the item
/// </summary>
/// <param name="OReader">OracleDataReader to be probed to obtain information</param>
/// <returns>Indicates whether the item was actually removed from the cache or not</returns>
public bool Remove(OracleDataReader OReader)
bool Removed = false;
// Lookup the ConnectionStringHashDetails
int HashValue = OracleMetaDataPoolerCleaner.ConnectionStringHashValue(OReader);
if (HashValue != -1)
// Lookup the command text and remove details
string CommandText = OracleMetaDataPoolerCleaner.CommandText(OReader);
// Attempt to remove from the cache
Removed = this.Remove(HashValue, CommandText);
return Removed;
/// <summary>
/// Using the supplied OracleCommand internal calls are made
/// to delegate the call to the OracleConnection version
/// </summary>
/// <param name="OCommand">OracleCommand to be probed to obtain information</param>
/// <returns>Indicates whether the item was actually removed from the cache or not</returns>
public bool Remove(OracleCommand OCommand)
// Call into internal other routine
return this.Remove(OCommand.Connection, OCommand.CommandText);
/// <summary>
/// Using the supplied OracleConnection internal calls are made
/// to determine the ConnectionHash and it uses CommandText details
/// to remove the item
/// </summary>
/// <param name="OConnection">OracleConnection from which the cache object should be removed</param>
/// <param name="CommandText">CommandText to be removed</param>
/// <returns>Indicates whether the item was actually removed from the cache or not</returns>
public bool Remove(OracleConnection OConnection, string CommandText)
bool Removed = false;
// Lookup the ConnectionStringHashDetails
int HashValue = OracleMetaDataPoolerCleaner.ConnectionStringHashValue(OConnection);
if (HashValue != -1)
// Attempt to remove from the cache
Removed = this.Remove(HashValue, CommandText);
return Removed;
/// <summary>
/// Routine actually removes the items from the cache if it exists
/// </summary>
/// <param name="ConnectionHashValue">ConnectionHash which is used to key into the Pooled items</param>
/// <param name="CommandText">CommandText to be removed</param>
/// <returns>Indicates whether the item was actually removed from the cache or not</returns>
private bool Remove(int ConnectionHashValue, string CommandText)
bool Removed = true;
// Retrieve Pooled items for particular hash value
Hashtable PoolContents = PooledItems[ConnectionHashValue] as Hashtable;
// Remove item if it is contained
if (PoolContents.ContainsKey(CommandText))
PoolContents.Remove(CommandText);
Removed = true;
return Removed;
/// <summary>
/// Summary description for OracleMetaDataRemover.
/// </summary>
public class OracleMetaDataRemover
private OracleMetaDataRemover()
/// <summary>
/// Routine which Removes MetaData associated with OracleCommand object
/// </summary>
/// <param name="OCommand">OracleCommand to have associated MetaData removed</param>
/// <returns>Indicates whether the MetaData associated with the OracleCommand was reset</returns>
public static bool Remove(OracleCommand OCommand)
bool Removed = false;
// Retrieve current MetaData values from OCommand
Type OracleCommandMetaData = OCommand.GetType();
FieldInfo f_metaData = OracleCommandMetaData.GetField("m_metaData", BindingFlags.NonPublic|BindingFlags.Instance);
if (f_metaData != null)
f_metaData.SetValue(OCommand, null);
Removed = true;
// Indicate Removed from OCommand object
return Removed;
/// <summary>
/// Routine which Removes MetaData associated with OracleCommand object
/// and allows for the removal of information from the internal cache
/// </summary>
/// <param name="OCommand">OracleCommand to have associated MetaData removed</param>
/// <param name="RemoveFromMetaDataPool">Whether item should be removed from the internal metadata pool too</param></param>
/// <returns>Indicates whether the MetaData associated with the OracleCommand was reset</returns>
public static bool Remove(OracleCommand OCommand, bool RemoveFromMetaDataPool)
bool Removed = false;
// Remove details from Command
Removed = Remove(OCommand);
if (Removed && RemoveFromMetaDataPool)
// Remove information form internal cache
Removed = OracleMetaDataPoolerCleaner.Instance().Remove(OCommand);
// Indicated Removed from OCommand and Internal MetaData collection
return Removed; -
Dear frined,
Please tell me how to recive and account returnable package lying in our store,Hi!
After entering the materials during goods receiving (MvT Type 101) in MIGO, tick Transport Equipment icon (blue icon besides add non-ordered items icon) and enter the necessary information.
Hope this helps!
Maybe you are looking for
-
I know it saounds crazy maybe but I dont know much about this kind of thing.. I dont know how to get the storage fixed. I purchased the extra storage on Icloud a while back and it still isnt backing up like it says it is.. I took alot of apps off tha
-
Hi! I've been reading about J2ME lalely, & just tried to compile a midlet, I've install wireless toolkit, but then after compiling the midlet using javac -bootclasspath <path>cldcapi11..... DateTimeApp.java I get the error package javax.microedition.
-
Not licensed for interactive forms
Hello, Background: Web AS Java 640 I have installed the adobe document service successfully in WEB AS JAVA 640 and having some issues in configuring abobe credential. It didnt ask for any adobe credential while installing and Not getting the option A
-
SQL Loader - Load multiple files in UNIX
HI all, I'm looking for a bit of help with using SQL LOADER to load multiple files into one table. I've had a look on the forums but still struggling with this one. What I want to do is basically upload everything thats in /home/ib. I know you can us
-
Fixed table for 2 repeating groups
Hi, I have a template that has 2 group, both of which have to been within a fixed table. I've been successful in using one of the examples in the Forum to print only 15 lines per group and page break. But I also have a requirement to print 5 lines of