-
What types of privileges users have on the objects
I need to write a query to determine what types of privileges users DB has tables, views e.t.c for a particular schema.
I mean if there are 50 + tables in a schema, and there are 5 users accessing them, I want to know what kind of privileges those users have on these tables.
I hope the scenario is clear. Try this
Select the dealer "role: ' |" granted_role Granted_role, admin_option, default_role
of dba_role_privs
where dealer in ("")
Union
Select d.grantee, ' privilege: ' | d.Privilege, d.admin_option, null
of dba_sys_privs d
where dealer in ("")
Union
Select the dealer, privilege. "on" | owner | '.' || possibility of granting, TABLE_NAME, null
of dba_tab_privs
where dealer in ("")
-
What type of reporting, we can do on CDO and is it mandatory to have all records in CDO to map with contacts to appear in reports?
Hello
What type of reporting, we can do on CDO and is it mandatory to have all records in CDO to map with contacts to appear in reports?
Any ideas?
Thanks in advance
Hello
It is perhaps not necessary to map contacts but in case you need activity report too, so it must be mapped.
To implement a reporting for the CDO, by clicking here.
After you click here, you will get an option to add several LCO for reporting. And you can get the report here. After the addition of CDO to report, it takes 10 minutes to reflect changes in insight.
-
Explicitly mapping between objects ActionScript and Java to BlazeDS Messaging Service
BlazeDS documentation shows how to map explicitly between ActionScript and Java objects. For example, this works very well for RPC services, for example
import flash.utils.IExternalizable;
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
[Bindable]
[RemoteClass(alias="javaclass.User")]
public class User implements IExternalizable {
public var id : String;
public var secret : String;
public function User() {
}
public function readExternal(input : IDataInput) : void {
id = input.readObject() as String;
}
public function writeExternal(output : IDataOutput) : void {
output.writeObject(id);
}
}
and
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class User implements Externalizable {
protected String id;
protected String secret;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSecret() {
return secret;
}
public void setSecret(String secret) {
this.secret = secret;
}
public void readExternal(ObjectInput in) throws IOException,
ClassNotFoundException {
id = (String) in.readObject();
}
public void writeExternal(ObjectOutput out) throws IOException {
out.writeObject(id);
}
}
If I called a RPC service that refers to a user, the secret is not sent on the wire. Is it also possible to do this for the e-mail service? In other words, if I create a custom message adapter and use the function below, also prevent secret to be sent?
MessageBroker messageBroker = MessageBroker.getMessageBroker(null);
AsyncMessage message = new AsyncMessage();
message.setDestination("MyMessagingService");
message.setClientId(UUIDUtils.createUUID());
message.setMessageId(UUIDUtils.createUUID());
User user = new User();
user.setId("id");
user.setSecret("secret");
message.setBody(user);
messageBroker.routeMessageToService(message, null);
Hi Martin. The way the serialization/deserialization AUTHORITY works for BlazeDS is the same regardless of service is used, then Yes, that code will work for messaging as well. On the server, the serialization/deserialization of messages coming to the endpoint. For an incoming message, for example, endpoint deserializes the message and passes it to the MessageBroker who decides what service/destination to deliver the message to.
That is a good question. Thank you for asking. A lot of people is used to make custom services (RemoteObject/RemotingService) RPC serialization/deserialization but I'm not sure that everyone realizes that they can do this for messaging as well.
-Alex
-
How do to find out what Procces flows a mapping is run?
Hello!
I have 11.1 OWB and a large number of mappings (> 300) and a lot of big PFs.
I didn't find a way to check in what PF a certain mapping is.
(The application is new for me).
Nowhere is this info in DC? I hoped he might be somewhere in property sheets, but does not.
You may select a loan to find out this info from the repository?
I would appreciate the code.
See you soon,.
Ykspisto Hello
Run the stored procedure
wb_workspace_management.set_workspace ('', '');
before you run your selection
Owner of combinations work/workspace workspace, you can get query
Select nom_espace_de_travail, WORKSPACE_OWNER from all_iv_workspaces;
Kind regards
Oleg
-
Exception [type: SIGSEGV, address not mapped to object]
Hello
I'm working on a database of Oracle 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters option.
I am trying to execute the following:
SELECT /*+ CURSOR_SHARING_EXACT */
vc.id_vehicle, gr.geoRouteId, g.name, round(g.length) length_, gr.active,
g.id_user id_user_georoute_owner, gr.grBindUserId id_user_bind_owner,
(SELECT count(*) FROM dual WHERE XMLEXISTS('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
FROM configurator.t_vehicle_configuration vc, dispatch.v_georoute g,
xmltable('$XML/vehicleconf/GeoRoute/geoRoute[@active="1"]'
passing vc.x_configuration AS "XML"
columns geoRouteId number path '@id',
active number path '@active',
grBindUserId number path '@id_user',
geoRouteUser xmltype path 'user'
) gr
WHERE vc.id_vehicle = 453
AND g.id_georoute = gr.geoRouteId;
but after a few seconds, I got the error in the object.
The alert log says:
+ Exception [type: SIGSEGV, address not mapped to object] [ADDR:0 x 38] [PC:0x483CEFD, evahtr () + 495] +.
Errors in the /u01/app/oracle/diag/rdbms/evodb/EVODB2/trace/EVODB2_ora_13769.trc file (incident = 301686):
+ ORA-07445: exception encountered: core dump [evahtr () + 495] [SIGSEGV] [ADDR:0 x 38] [PC:0x483CEFD] [address not mapped to object] [] +.
Incident details in: /u01/app/oracle/diag/rdbms/evodb/EVODB2/incident/incdir_301686/EVODB2_ora_13769_i301686.trc
The trace says:
+ ORA-07445: exception encountered: core dump [evahtr () + 495] [SIGSEGV] [ADDR:0 x 38] [PC:0x483CEFD] [address not mapped to object] [] +.
+= == Dump for incident 301686 (ORA 7445 [evahtr () + 495]) = +.
-Beginning of Incident custom Dump (s)-
+ Exception [type: SIGSEGV, address not mapped to object] [ADDR:0 x 38] [PC:0x483CEFD, evahtr () + 495] +.
Weird stuff, is that if I remove the
(SELECT count (*) OF double WHERE XMLEXISTS (' $XML_ALM/user/alarmwhen [@direction = "out"]' in passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
of the application, there is no problem.
Do you have any suggestions?
Thanks in advance,
Samuel Weird stuff, is that if I remove the
(SELECT count (*) OF double WHERE XMLEXISTS (' $XML_ALM/user/alarmwhen [@direction = "out"]' in passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
of the application, there is no problem.
It is probably because you are not using XMLExists correctly.
The function returns a Boolean value if you don't need to test 1 or 0 as needed with function existsNode before:
http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28369/xdb04cre.htm#sthref360
It is also preferable to use an expression BOX instead of a subquery:
SELECT /*+ CURSOR_SHARING_EXACT */
vc.id_vehicle
, gr.geoRouteId
, g.name
, round(g.length) length_
, gr.active
, g.id_user id_user_georoute_owner
, gr.grBindUserId id_user_bind_owner
, case when XMLExists('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM")
then 1
else 0
end as alm_out
FROM configurator.t_vehicle_configuration vc
, dispatch.v_georoute g
, xmltable('$XML/vehicleconf/GeoRoute/geoRoute[@active="1"]'
passing vc.x_configuration AS "XML"
columns geoRouteId number path '@id',
active number path '@active',
grBindUserId number path '@id_user',
geoRouteUser xmltype path 'user'
) gr
WHERE vc.id_vehicle = 453
AND g.id_georoute = gr.geoRouteId
;
Better yet, you can directly test the condition in the clause of COLUMNS with fn: there is the XPath function.
For example, something like this:
SQL> with sample_data as (
2 select xmltype('
3 - 1
4 - 2
5 - 3
6 ') doc
7 from dual
8 )
9 select x.*
10 from sample_data t
11 , xmltable(
12 '/root/row'
13 passing t.doc
14 columns item number path 'item',
15 flag number path 'exists(other[@id="x"])'
16 ) x
17 ;
ITEM FLAG
---------- ----------
1 1
2 0
3 0
-
[ORA-07445: exception encountered: core dump [xsobjdmp_alcb () + 18] [SIGSEGV] [address not mapped to object] [0 x 638] []]
Hello
My database is running on 10.2.0.4.0
Face an ora 07445 and error ora-600, that is
[ORA-07445: exception encountered: core dump [xsobjdmp_alcb () + 18] [SIGSEGV] [address not mapped to object] [0 x 638] []]
[ORA-00600: internal error code, arguments: [XSOOPS], [xsbaClose01], [] [] [], [], [],]
Can someone tell me how to solve
What are the meaning of these arguments [xsobjdmp_alcb () + 18] [SIGSEGV], [XSOOPS], [xsbaClose01]
Kind regards
Uxii
ORA-600/7445 errors are associated with any trace files that gives many details on these errors. Before triggering the SR keep those handy also.
concerning
Pravin
-
What is the equivalent of HashTable of Java in PL/SQL
Hello
I write a java method that calls a pl/sql procedure. The procedure must accept a single input parameter and I actually pass the parameter of java as a hash table
protected void doDML(int operation, TransactionEvent e) {
// super.doDML(operation, e);
Hashtable record = new Hashtable();
String columnName = null;
if (operation == DML_INSERT) {
for (int i =0; i<getAttributeCount(); i++) {
columnName = this.getEntityDef().getAttributeDef(i).getColumnName();
System.out.println(columnName+ "=>"+this.getAttribute(i));
record.put(columnName, this.getAttribute(i));
}
System.out.println(record.size());
insertRow(record);
}
}
public void insertRow(Hashtable table) {
CallableStatement st = null;
try {
// 1. Define the PL/SQL block for the statement to invoke
String stmt = "begin test_tab_pkg .insert_row(?,?); end;";
// 2. Create the CallableStatement for the PL/SQL block
st = getDBTransaction().createCallableStatement(stmt, 0);
// 4. Set the bind values of the IN parameters
st.setObject(1,table);
// 3. Register the positions and types of the OUT parameters
st.registerOutParameter(2, Types.VARCHAR); //P_REQ_AMT_BASE
// 5. Execute the statement
st.executeUpdate();
// setReqAmountBase(st.getString(8));
setErrorMsg(st.getString(2));
System.out.println(getErrorMsg());
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
//Close the JDBC CallableStatement
st.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
}
as see you in the code, the method "::InsertRow()" runs a procedure from pl/sql "test_tab_pkg.insert_row(?,?)".
the first parameter is IN, and the second was RELEASED.
The problem is that I don't know what type of data I use PL/SQL for parameter 1.I tried an array of records, but it fails. This is my code
CREATE OR REPLACE package HR.test_tab_pkg
is
type ADF_ENTITY is table of VARCHAR2(30) index by binary_integer;
procedure insert_row (prec in ADF_ENTITY , perror out varchar2 ) ;
end ;
/
CREATE OR REPLACE package body HR.test_tab_pkg
is
procedure insert_row (prec ADF_ENTITY , perror out varchar2 )
is
begin
insert into test_tab (tab_id , description ,trx_date )
values (prec(0) , prec(1) ,SYSDATE ) ;
perror:='0';
exception
when others
then perror:=sqlcode ;
end insert_row;
end ;
/
When I test my method this error occurs
java.sql.SQLException: invalid column type
I need to make the java method's hash table to a PL/SQL procedure. How to do this?
Thank you
Hi Tarek,
Associative arrays works similar to Java hash tables, it is a set of key-value pairs.
Look at this link:
Documents and Collections of PL/SQL
I hope that helps!
Concerning
Carlos
-
Problem with the task of mapping the object status
Hello
There is a "Create User" task, which at the end gives the status of the object to set.
There is a later task named "Update form" which, on the rejection, must restore the status of the Configuration object.
I put in place this logic in the 'Mission to the mapping of object status' tab in the console Design.
However, this change doesn't think. What is the best solution in this case?
Kind regards
SK Once the resource is implemented, you can only have three status
Enabled, disabled and removed
You can do it, commissioning or any other
These status shows the status of the resource. Now, once the user get configured how it can be provisioning (failed). Perhaps some update fails, what does not mean that the user is not put into service.
Yes, you can do work around that Gyan has suggested to you
-nayan
-
Collection ArrayCollection in flex and ArrayList in java
Salvation of this world don't
Here I am with my problem with the hope someone can solve it
I am totally new to flex and I work only for 3 days in flex. and I learned a little more.
I want to get the values of database that is received from java to flex datagrid object by using the data provider.
I did quite well in my opinion. But I could not produce the result in the data grid. Since I am very new. I don't know what is happening.
my code is here, please help me.
My mxml file: Myadmin.mxml
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" >
< mx:RemoteObject id = "ber" destination = "dock" showBusyCursor = "true" fault = "faultHandler (event)" > "
< name mx:method = "getBerth" result = "resultHandler (event)" / >
< / mx:RemoteObject >
< mx:Panel id = 'Top' title = "MaBase" width = "100%" height = "40%" enabled = "true" >
< mx:TextArea id = "sql" width = "100%" height="100%"/ >
< mx:Button label = "Execute" click = "handleSend ()" / >
< / mx:Panel >
< mx:Panel id = "bottomPanel" title = "Results" width = "100%" height = "60%" enabled = "true" >
< mx:DataGrid id = "dg" dataProvider = "{result}" width = "100 percent" height="100%"/ >
< / mx:Panel >
< mx:Label id = "resultLabel" text = "Onumae puriyale ulgathulae" / >
< mx:Script >
<! [CDATA]
Mx.rpc.events import. *;
Import mx.collections. *;
Mx.controls import. *;
Import mx.utils.ObjectUtil;
caching empty ArrayCollection collection so that we don't continue to create
new
private var emptyResults:ArrayCollection = new ArrayCollection();
[Bindable]
public var result: ArrayCollection collection = emptyResults;
private void resultHandler(event:ResultEvent):void
{
Alert.Show ("event.result table of results", ObjectUtil.toString (event.result as ArrayCollection collection));
result = ArrayCollection (event.result);
var myCursor:IViewCursor=result.createCursor();
var oldLength:int = result.length;
Alert.Show (oldLength.ToString ());
}
private void faultHandler(event:FaultEvent):void
{
Alert.Show (event.fault.faultString, "Error");
}
private function handleSend (): void
{
ber.getBerth ();
}
[]] >
< / mx:Script >
< / mx:Application >
My java object: Berth.java
package samples.sqladmin;
import java.sql. *;
Import Java.util;
import java. IO;
public class Berth
{
Public Shared Sub main (String args []) throws exceptions
{
List ArrayList = getBerth();
System.out.println ("the list is =" + list);
}
public static ArrayList getBerth () throws Exception {}
Connection con = null;
Statement st = null;
ResultSet rs = null;
ResultSetMetaData rsmd = null;
List ArrayList = new ArrayList();
HashMap line = null;
try {}
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
} catch (ClassNotFoundException nctf) {}
System.out.println (CNFE.getMessage ());
}
try {}
con = DriverManager.getConnection ("jdbc:odbc:Jurong", "","");
St = con.createStatement ();
String sql = "select * berth;
RS = ST. ExecuteQuery (SQL);
rsmd = rs.getMetaData ();
int colCount = rsmd.getColumnCount ();
While (RS. Next {}
line = new HashMap();
for (int i = 1; i < = colCount; i ++) {}
Row.put (rsmd. GetColumnName (i), rs.getString (i));
}
List.Add (Row);
}
}
{} catch (SQLException sqle)
System.out.println ("enna da yogans eeeeee...");
System.out.println (sqle.getMessage ());
}
If (con! = null)
con. Close;
If (st! = null)
St.Close ();
back list;
}
}
my remote-config file is:
< destination id = "dock" >
Properties of <>
samples.sqladmin.Berth < source > < / source >
< / properties >
< / destination >
I got the table in flex collection object, but it gives the values received in java
Please help me.
Thanks in advance
yogans. Hi my dear friends
I'm sorry to put you in trouble. I got the result. The problem is
not with the code. its with my system. The problem is that I have configured
same name for datesource for system and user DSN DSN name. After that I deleted
a user DSN data source. I got it working.
Thank you very much william, thank you much Nelson for your spontaneous response
Thank you
Yogans
-
What type of cable/port is called also where I can buy one?
Please link me the website where they have cable!
This is the "mini-DVI' to this end. Cabe you need depends on what type of monitor or projector, you need to connect to the other side? Apple sells adapters for this purpose and made StarTech.
-
I have a Mid-2010 Mac Pro Tower running OS Yosemite to which I would like to connect a Tower (G-Technology) G-Speed Q RAID via eSATA connection. What type of card PCIe eSATA should I install in my Mac Pro tower to enable such a connection?
I have a Mid-2010 Mac Pro Tower running OS Yosemite to which I would like to connect a Tower (G-Technology) G-Speed Q RAID via eSATA connection. What type of card PCIe eSATA should I install in my Mac Pro tower to enable such a connection?
https://eShop.MacSales.com/item/NewerTech/MXPCIE2E2U3/
https://eShop.MacSales.com/item/NewerTech/MXPCIE6G2S2/
https://eShop.MacSales.com/item/NewerTech/MXPCIE6GRS4E/
https://eShop.MacSales.com/item/sonnet%20Technologies/TSATA6PROE2/
-
What type of video card? PCI, PCI Express or AGP?
I have a new hp a6647c and you want to use two monitors. I need a new monitor VGA video dualistic structure. A store asked me what type of Governing Council would hold in my computer, CPI, CPI Express or AGP. So, how can I determine which Board is necessary for my hp 6647?
Here are the specs:
http://support.HP.com/us-en/document/c01559155
You can not use an AGP card. There is no AGP slot. You have an open pci express x 16 video card slot and a pci slot. You may in fact theoretically have three monitors; two ducts by a dual PCI express head and a third led by a pci video card. If you plug a video card into one of the expansion slots, you will lose the onboard video capability.
-
57nr 6B dv7: what type of power button Board cable I have
I'm looking for what type of power button Board cable I have I need a new replacement
Hi @DarknesReasz,
Thanks for posting HP forums! I read your post and wanted to help.
I understand that you are looking for a replacement power button Board cable.
I found below on Page 36 of the Pavilion dv7 Maintenance and Service Guide
You could search the part number on the link of the HP parts store.
Let me know if theses help to resovle your issue
If this helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say 'Thank you' to my effort to help, click on the "thumbs up" to give me congratulations.
Kind regards
-
What Type of PCMCIA is supported by Equium A200-1ED?
Hello
They gave me this old Equium A200-1ED which is too slow for window 8.
Putting aside the expensive option of a SSD, I thought to install windows on an SD card but the BIOS do not see it as a boot device and the driver seems not to recognize as exFat and even then it only reads that 27.7 GB on a 64 GB card.
So my next option is to get an adpater for the ExpressCard/PCMCIA location for the 64 Gb SD card that I hope the BIOS will be able to see as boot drive, but I don't know what Type (PIN configuration) of the card supports this machine slot.
The driver seems to think that he supports PCMCIA, but I know that it is not a Type II, because I have a Type II device that does not fit into here.
I don't want to open it, so I wrote to Toshiba, but I didn't get any answer.
So maybe someone here can help.
Any ideas?
Thank you
PCMCIA is designed for the use of some external devices, but the idea to use the preinstalled with OS boot device is really crazy. I'm pretty sure that this will not work.
A few years ago, I had Satellite A200. It is the same model as your satellite. If you want to have good enough laptop s performance I recommend to install Windows 7 32 bit. This machine was designed for Vista, but it is supported for Win7 32 bit. WIN8 isn't the solution for this old piece of hardware.
With Win7, it works fairly well, stable and faster than original Vista. SSD is very good way to increase the performance of s for laptop, but it costs a little. Anyway, you shouldn't buy the best and most recent SSD. You can get an opportunity for a lot of money.
Anyway, combined with mise a niveau of RAM and Win7 installation is, in my opinion, best option for you.