QueryUnresolvedVMFSVolumes() returns nothing
Hi @all,
I build a PowerShell script to mount the snapshot LUN in a case of DR. But my QueryUnresolvedVMFSVolumes returns nothing in my script. If I use all the lines manually I get the expected return. There is nothing in the script. Can anyone help?
Thanks Klaus
Maybe try to wait between the RefreshStorageSystem and the QueryUnresolvedVMFSVolumes of the calls.
For example put a 10 ' sleep ' cmdlet between 2 calls. "
You probably play with the duration
Tags: VMware
Similar Questions
-
I develop a VI on a large scale with a VI of web service combined in 2010 SP1. The "auxiliary" VI is responsible for storage of data capture and analysis as well as data and communications. It's big enough and communicates with the web method VI through shared network variables [and I use the DSC module to allow the management of shared variables of events].
I can build and deploy the web method VI very well and it runs great. However, I need to communicate between the auxiliary and web method VI, and it seems that I can't do without including the auxiliaries vi when generating RESTful web services [also, is there a way to make this web service generates?]. When I added the auxiliary vi for the construction, he built very well, but then I got during deployment:
"Server returned nothing (no header, no data).
The next time I tried to deploy, I got a fake NI Auth dialog by this knowledge base article. By following the instructions for case 1 ["failure of Web application server since last started"], I ran Services.msc and found that NEITHER Application Web Service was not running. I tried to restart the service, but got this error:
"The NI Application Web Server service on Local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the service logs and alerts. »
Knowledge base article suggests to restart at this point and I did, but I still see the same behavior. So really, I have a few questions:
1. is it possible to deploy a variable library shared on the network through a local web service deployed and VI?
2. What are the causes "server returned nothing (no header, no data)" in the deployment? A google search gave very little.
3. what this means: "NI Application Web Server service on Local computer started and then stopped... '. "and what do I do to get my Web Application Server up?
[to pile on the pile... I tried to re - activate the localhost:3580 Web application server and got an error. Localhost:3580 then offline also.]
Thank you!
Update.
I noticed that the Web application server attempted to deploy the web service broken and choke her. There seemed to be no way to clear the .lvws created at the origin of the construction. I was able to remove the deployment folder to \UserServices\deployed\ $(WebServicesRoot)
- , but it has been recreated from the .lvws whenever I tried to restart the service. So I called NOR and they told me this directory [XP]:
C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone
The .lvws has been in this folder. I deleted it and now I can run the ApplicationWebService. Apparently this file hidden undocumented is a "not-quite-bug" that is recognized as needing a fix in future releases.
-
create table ab (a number, b varchar2 (20));
Insert into ab
Select rownum, rownum. "" sample "
of the double
connect by level < = 10
create table bc (a number, b varchar2 (20));
Insert into BC.
Select rownum + 1, rownum + 1 | "" sample "
of the double
connect by level < = 10
Select * AB
where b in (select b BC where b = "2sample")
This query will return me 1 row, but there are cases where the value of the parameter b is null
and that it should return all rows in the table
as
Select * AB
where b in (select b BC where b = "2sample")
which return specific values, but I want to change in a way when the inner query returns nothing then outer query should return all the lines and works as
Select * AB;
Is it possible to put in a single query
Hello
You seem to ask for different things. You want all the lines AB when
- The parameter ("2sample' in the example) is NULL, or when
- There is no corresponding row in the 2 tables (which could happen even if the parameter is not NULL)
?
Assuming you want the option 2, here's one way:
WITH got_rnk AS
(
SELECT ab.*
DENSE_RANK () (ORDER IN CASE
WHEN b (IN)
SELECT b
BC.
WHERE b = "2sample" - parameter
)
THEN "A".
OF ANOTHER 'B '.
END
) AS rnk
AB
)
SELECT a, b
OF got_rnk
WHERE rnk = 1
;
This does not assume b is unique in each table.
Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.
-
PowerCLI Get-AdvancedSetting returns nothing
Hello.
I have a problem with the Get-AdvancedSetting command.
The return is always nothing, unless an error occurs, which in this case indicates the error.
In the example below, it should return a list of required parameter for all virtual machines that have this setting:
PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get - vm | Get-AdvancedSetting - name disk. EnableUUID
PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >
Also the same in this variant:
PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get-AdvancedSetting - entity (Get - VM - name SRVNAME) - disk name. EnableUUID
PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >
As you can see, it only skips line and returns nothing. I am able to enumerate all the virtual machines if I just launched Get - vm and I get an error if I try the above without the entity.
I tried with arguments of different setting different disk . EnableUUID, but got the same result.
What could be wrong?
Thank you.
Ouch, that's a pretty old version.
No particular reason, you can not upgrade?
-
Get-VMHostSnmp returns nothing
Hi all
I need to get out a bunch of SNMP parameters for some 5.5 ESXi hosts.
This bit is easy. I say that because when I run the command set-vmhostsnmp to add the targets and community names, no error is returned.
It's when I try to check the settings, or search the SNMP settings on different hosts that I run into trouble.
I want to add that I tried the following on PowerShell (v3), Powershell ISE, with VMware PowerCLI (5.5 Release 1).
Always with the same results.
to connect-viserver MyESXiHost-credential (get-credential)
Get-VMHostSNMP #returns nothing
Get-VMHostSNMP-returns # server MyESXiHost the below error
Get-VMHostSnmp: 26/Jun/2015 12:14:18 Get-VMHostSnmp The method or operation is not implemented. On line: 1 char: 1
+ Get-VMHostSnmp-Server MyESXiHost
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:)) [Get-VMHostSnmp], VimException) + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostSnmp I checked the snmpd Service and it is running
Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"}
Required Label key running policy
--- ----- ------ ------- --------
snmpd snmpd on True False
I even restarted the snmpd service after adding the SNMP parameters using
Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"} | Restart-VMHostService-confirm: $false
That is to say; Label Policy Running required --- ----- ------ ------- -------- snmpd snmpd on True Fake I even tried to Get-EsxCli
$esxcli = get-EsxCli - VMHost siprb3esx01.corp.emc.com
$esxcli.system.snmp.get)
several errors returned
Community string has not been specified in the trap target
When I put something inside the brackets, I get the following
The 'get' method is called with parameters '1', but the number of parameters expected is '0'
Any help that can be offered would be appreciated.
Thank you all
Problem solved.
I've updated since PowerCLI 5.5 Release 1 to PowerCLI version 5.8 Release 1 and the get-vmhostsnmp command now works.
Better yet Get-VMHostSnmp | Select VMHost, works of TrapTargets
-
Extract XML Value returns nothing
Hi, I have a table where I put an XMLTYPE column called XML_RESPONSE and a CLOB called XML_RESPONSE_CLOB with the same XML content each.
One of the values of records in the two columns look like this:
<? xml version = "1.0" encoding = "UTF - 8"? >< s : Envelope xmlns:S = » http://schemas.xmlsoap.org/soap/envelope/ « >< Body >< ns2:StampCFDBytesResponse xmlns:ns2 = » http://impl.Controllers.massive.Fe.STO.com/ "xmlns:ns3 = » http://exception.Fe.STO.com/ "><stampedDocument>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk6Q29tcHJvYmFudGUgdmVyc2lvbj0iMy4yIiBmb2xpbz0Cinb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCBodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbC9UaW1icmVGaXNjYWxEaWdpdGFsLnhzZCIgeG1sbnM6dGZkPSJodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCIvPgogICAgPC9jZmRpOkNvbXBsZW1lbnRvPgo8L2NmZGk6Q29tcHJvYmFudGU+</stampedDocument></ns2:StampCFDBytesResponse></S:Body></S:Envelope>
I am trying to extract the base64 code, that is inside the < stampedDocument > element.
If I use this code, the procedure runs, but returns nothing:
Select apex_web_service.parse_xml (XML_RESPONSE, "/ / envelope/body/stampedDocument")
in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;
If I use the following the procedure returns an error:
Select apex_web_service.parse_xml (XML_RESPONSE, '//Envelope/Body/stampedDocument/stampedDocument ()')
Select apex_web_service.parse_xml (XML_RESPONSE, '//S:Envelope/S:Body/stampedDocument/stampedDocument ()')
Select apex_web_service.parse_xml (XML_RESPONSE, ' / / s: Envelope / Body / stampedDocument')
in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;
06503 00000 - "PL/SQL: function returned no value."
* Cause: A call to the PL/SQL function completed, but no RETURN statement has been
executed.
* Action: Function to rewrite PL/SQL, ensuring that it always returns
a value of the appropriate type.
I also tried with the ExtractValue function and retunrs null or an error.
SELECT id_cfdi_timbrado,
EXTRACTVALUE (e.xml_response, ' / envelope/body/stampedDocument ')
'CFDI_BASE_64 '.
OF e f_cfdi_timbrados
WHERE id_cfdi_timbrado = 1002;
Please notify. It's my first experience of XML parsing and it seems that I am lost.
Francisco
The error message provides the clue that you need. If you were to search on this error message, you will see he's trying to tell you that you are missing a RETURN statement at the end of your function. Something like
RETURN v_stamped;
That would resolve the issue causing the error ORA.
Regarding the second question, that you will encounter, your clips are not correctly name space which is part of the XML. For extractValue, there is a third parm
If your query would look like
EXTRACTVALUE (e.xml_response, ' / s: Envelope/Body / ns2:stampedDocument ',' xmlns:S = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2 = "http://impl.controllers.massive.fe.sto.com/"')
I leave you to you of apex_web_service.parse_xml of research
That said, depending on your version of Oracle, extractValue might be obsolete and you will have to go in a different direction.
Here are a few tips to post on the forums
-
What is a good way to check if the selection ADB sql cursor returns nothing
Hi all
I am trying to find a good way to identify that a select SQL basic cursor return nothing.
I know that or we use exception when no data found or count (*) to check how many rows are returned.
I have a cursor based on a long statement select.
As
Is there a way other than the above?CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2) CURSOR long_cursor IS --long select statement(with input variable) ; BEGIN Select count(*) Into v_count From -- a long select statment with input again ; IF v_count > 0 then For record in long_cursor loop --Get information from cursor --other processing for output End loop; END IF; END;
I would like to reduce the amount of typing. I know that repetition in code is not good.
Thanks in advance,
Ann
Published by: Ann586341 on February 28, 2013 14:29Hello Ann,.
Apart from the possibility has already been mentioned that other users can change the data during execution of your process, you can check if something needs to be done without the COUNTY. Set a flag in the cursor for loop. When there is no data, then the flag will not change one you can perform the necessary procedure.
CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2) v_data_found BOOLEAN := FALSE; CURSOR long_cursor IS --long select statement(with input variable) ; BEGIN For record in long_cursor loop v_data_found := TRUE; --Get information from cursor --other processing for output End loop; IF NOT v_data_found THEN -- set processed flag END IF; END;
Concerning
Marcus -
Custom view get-inventory returns nothing
Here is an excerpt of what I'm trying to accomplish (I filter certain fields/results)
Get-Inventory | %{ $type = $_.Id if($_.Id.Contains("-")) { $type = $type.Substring(0, $type.IndexOf("-")) } switch ($type) { "ClusterComputeResource" { select @{name="[MACHINE_NAME]"; expression={$server}}, @{name="[PATH]Id"; expression={$_.Id}}, @{name="[PATH]Name"; expression={$_.Name}}, @{name="Name"; expression={$_.Name}}, @{name="HA Enabled"; expression={$_.HAEnabled}}, @{name="HA Admission Control Enabled"; expression={$_.HAAdmissionControlEnabled}}, @{name="HA Failover Level"; expression={$_.HAFailoverLevel}}, @{name="HA Restart Priority"; expression={$_.HARestartPriority}}, @{name="HA Isolation Response"; expression={$_.HAIsolationResponse}}, @{name="DRS Enabled"; expression={$_.DrsEnabled}}, @{name="DRS Automation Level"; expression={$_.DrsAutomationLevel}}, @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}}, @{name="Custom Fields"; expression={$_.CustomFields}}, @{name="Type"; expression={$type}} } "HostSystem" { select @{name="[MACHINE_NAME]"; expression={$server}}, @{name="[PATH]Id"; expression={$_.Id}}, @{name="[PATH]Name"; expression={$_.Name}}, @{name="Name"; expression={$_.Name}}, @{name="State"; expression={$_.State}}, @{name="VM Swapfile Datastore Id"; expression={$_.VMSwapfileDatastoreId}}, @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}}, @{name="Custom Fields"; expression={$_.CustomFields}}, @{name="Type"; expression={$type}} } ...
It returns nothing every time. If I just run Get-inventory I collect a lot of data. My guess is that I do something wrong in a perspective of PowerShell, not a point of view CLI.
Any ideas?
It's because you're not 'feed' anything in the select cmdlet.
And the Switch statement modifies the contents of the variable $_
And to get the type that you can use the GetType method that exists on any object.
Get-Inventory | % { $type = ($_ | Get-View).gettype().Name $obj = $_ switch ($type) { "ClusterComputeResource" { $obj | select @{name="[MACHINE_NAME]"; expression={$server}}, @{name="[PATH]Id"; expression={$obj.Id}}, @{name="[PATH]Name"; expression={$obj.Name}}, @{name="Name"; expression={$obj.Name}}, @{name="HA Enabled"; expression={$obj.HAEnabled}}, @{name="HA Admission Control Enabled"; expression={$obj.HAAdmissionControlEnabled}}, @{name="HA Failover Level"; expression={$obj.HAFailoverLevel}}, @{name="HA Restart Priority"; expression={$obj.HARestartPriority}}, @{name="HA Isolation Response"; expression={$obj.HAIsolationResponse}}, @{name="DRS Enabled"; expression={$obj.DrsEnabled}}, @{name="DRS Automation Level"; expression={$obj.DrsAutomationLevel}}, @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}}, @{name="Custom Fields"; expression={$obj.CustomFields}}, @{name="Type"; expression={$type}} } "HostSystem" { $obj | select @{name="[MACHINE_NAME]"; expression={$server}}, @{name="[PATH]Id"; expression={$obj.Id}}, @{name="[PATH]Name"; expression={$obj.Name}}, @{name="Name"; expression={$obj.Name}}, @{name="State"; expression={$obj.State}}, @{name="VM Swapfile Datastore Id"; expression={$obj.VMSwapfileDatastoreId}}, @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}}, @{name="Custom Fields"; expression={$obj.CustomFields}}, @{name="Type"; expression={$type}} } } }
-
Profile of user - purchase - returns nothing
I created a user profile in the Oracle Applications Sub - application developer
Application: purchase
Profile name: PO: CHANGE of SBM
Type of hierarchy: security
Validation of SQL:
SQL = "select decode (meaning,".
"Yes',"Full. "
'No', 'None') \"Access Level\ «,»
lookup_code
in: visible_option_value,: profile_option_value
of fnd_lookups
where lookup_type = 'YES_NO '.
Now, I am trying to run this query that returns nothing. Is it because I have the application level * purchase *.
{code}
Select apps.fnd_profile.value ('PO: SBM CHANGE ') twice;
{code}
Thank youHello
First you need to get the values of this profile option (resp. system administrator > profile > system).
In addition, when you use fnd_profile.value, you must specify the option of internal profile name and not the name of user profile option (maybe they are the same in your case?).
And also, in general, you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize to do this.It will be useful.
-
I always used to be able to search and retrieve password - but the user interface has changed recently and what I am looking for nothing is returned; but for many sites it always automatically fills my name and password so that they are there. I have tried searching for anyone else having this problem but couldn't find anything - can not believe I am alone but...
I just do in low grade - or is there anything else I can do to recover the features?
You are welcome
-
Why my cfoutput returns nothing?
I apologize for the double posting but I have a deadline, I try to answer, and I won't go home until I understood that.
I'm trying to return data based on two queries, I created, using a cfif. Currently, I'm * nada *, no error, either. And I know that there is a lot of information to return.
Is someone can you please tell me what is wrong with my code (attached)? I would be very grateful.
ETA: the part that amounts to nothing:
< cfif #getTeacherInfo.emp_SchoolID # eq #getSalutation.rc_SchoolID # >
< table >
< b >
#getTeacherInfo.TeacherName # < cfoutput > < / cfoutput >
< /tr >
< /table >
< / cfif >
OK... I had understood it - should be at work 12 hours, today! : Heh D.
This generates a list of teachers with their certification due dates. I will then link to individual pages. :) -
5.5.1 returns nothing for VC:HostSystem.availableField
After the upgrade to vCO 5.5.1 my routine that retrieves custom field values is breaking. It seems that VC:HostSystem.availableField does not return anything although I have 5 custom fields defined at this level. Worked great for two years, but seem to have broken on the 5.5.1 upgrade. Can someone check?
Hello Paul,
The use of the service of the inventory has been deprecated after the release of the VCO 5.5.1 and we maintain is no longer the code that handles the communication to him. The reason is that we have had many reports of false data, returned by the service of inventory. The biggest bottleneck when retrieving data through collector of property (as opposed to the service of inventory) is registration of the property filters. To remedy, after disabling the service (by default) inventory, we refactored the plugin to register these filters property asynchronously (after first recover the data directly) thus avoiding the overhead of locking and pending registration of filter. These changes are present in the plugin version that we sent to SR 14445410402. Since your installation used the inventory service, I guess that you do not use this version. Could you upgrade to it and see if you are experiencing significant slowdowns?
Kind regards
Victor
-
Why my function returns nothing when I create as a schema object
I have the ABC's of the user who owns several paintings, some of which have foreign key constraints.
I have user XYZ who has access to all the tables belonging to the user ABC.
When I create a user XYZ feature to use more I get no return when I run:
Select XYZ.ztm_tables_depended_on ('ABC', 'A_TABLE_OWNED_BY_ABC') of double:
Please see after the function definition.
CREATE or REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON (p_Owner VARCHAR2, nom_table_p VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = nom_table_p
AND CONSTRAINT_TYPE = 'R '.
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
--
v_Referenced_Owner VARCHAR2 (31);
v_Ret_Val VARCHAR2 (4000);
--
The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND the argument CONSTRAINT_NAME = p_Constraint_Name;
--
v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
--
RETURN v_Ret_Val;
END;
--
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';
ANOTHER v_Referenced_Owner: = NULL;
END IF;
--
v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
--
RETURN LTRIM (v_Ret_Val, ',');
END;
/
But if I enter the function within an anonymous block as follows, I get results:
DECLARE
CURSOR C1 IS
Select owner, table_name
From all_tables where owner = 'ABC ';--
The FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = nom_table_p
AND CONSTRAINT_TYPE = 'R '.
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
--
v_Referenced_Owner VARCHAR2 (31);
v_Ret_Val VARCHAR2 (4000);
--
The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND the argument CONSTRAINT_NAME = p_Constraint_Name;
--
v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
--
RETURN v_Ret_Val;
END;
--
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';
ANOTHER v_Referenced_Owner: = NULL;
END IF;
--
v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
--
RETURN LTRIM (v_Ret_Val, ',');
END;--
BEGIN
FOR R IN C1 LOOP
DBMS_OUTPUT. Put_line (ztm_tables_depended_on (R.Owner, R.Table_Name));
END LOOP;
END;
/Any ideas what is happening here?
Any ideas what is happening here?
Justin said the likely reason.
See the section "How to exercise roles in PL/SQL blocks" the doc of database security for details
http://docs.Oracle.com/CD/E25054_01/network.1111/e16543/authorization.htm#i1007304
Operation of the roles in PL/SQL blocks
The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.
Roles used in the appointed with rights to define blocks
All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.
The
SESSION_ROLES
view shows all roles that are currently enabled. If a named PL/SQL block that runs with Definer Rights queriesSESSION_ROLES
, then the query will return no rows.Roles used in blocks named with the rights of the plaintiff and anonymous PL/SQL
Named PL/SQL blocks that run with the rights of the applicant and the anonymous PL/SQL blocks are executed at the end of the privileges granted through active roles. Current roles are used for verification within rights Summoner of privilege the PL/SQL block. You can use dynamic SQL statements to define a role in the session.
See this line beginning by "all roles are disables in any PL/SQL block named"?
-
ActiveSync with Active Directory and the custom search filter returns nothing
Hello
I use ActiveSync to update the Active Directory user accounts in the IDM repository.
The search is based on the uSNChanged attribute to find the last modified accounts.
I'm trying to set a search filter in my resource Active Directory synchronization strategy that is combined with the default
I expect to see this filter on the balls
(& (objectClass = user) (objectCategory = person) (myCustomAttribute = value) (uSNChanged > = 8003748))
But Active Directory receive it:
(& (objectClass = user) (objectCategory = person) (FALSE) (uSNChanged > = 8003748))
If the query never returns from the objects.
Can someone help me solve this problem?
Thanks in advance
Edited by: user1657029 Apr 23. 2013 15:52Problem solved. My custom attribute was not on the global catalog in Active Directory
-
Bulk collect and type returns nothing
Hello
I have the following code:
This code returns PL/SQL procedure successfully completed.declare type view_my_type is table of admuser.my_view%rowtype index by pls_integer; --x admuser.my_view%rowtype; my_array view_my_type; cursor c1 is select * from admuser.my_view; s long; i number := 1; begin s := 'crate table '; open c1; loop fetch c1 bulk collect into my_array limit 1; --s := s ||' decode (tf.fin_dates_id, '||my_array(i).fin_dates_id||', sum(tf.act_work_cost), 0) '; s := my_array(i).fin_dates_id; exit when c1%notfound; end loop; close c1; dbms_output.put_line(s); exception when others then null; end;
but don't show me is not the variable "s".
Can you help me with this?
Thank youThere a quite a number of things not just here.
First of all, allow me to reproduce your situation:SQL> create table my_view 2 as 3 select 'hello' fin_dates_id from dual 4 / Table created. SQL> declare 2 type view_my_type is table of my_view%rowtype index by pls_integer; 3 my_array view_my_type; 4 cursor c1 is 5 select * 6 from my_view; 7 s long; 8 i number := 1; 9 begin 10 s := 'crate table '; 11 open c1; 12 loop 13 fetch c1 bulk collect into my_array limit 1; 14 s := my_array(i).fin_dates_id; 15 exit when c1%notfound; 16 end loop; 17 close c1; 18 dbms_output.put_line(s); 19 exception 20 when others then 21 null; 22 end; 23 / PL/SQL procedure successfully completed.
And I SERVEROUTPUT on. Your exception handler is notoriously wrong. It is said: If something goes wrong, we'll pretend it didn't happen. And that's exactly what happened here: something has gone wrong and you have chosen to not know about it.
We will remove the exception handler to see what went wrong:
SQL> declare 2 type view_my_type is table of my_view%rowtype index by pls_integer; 3 my_array view_my_type; 4 cursor c1 is 5 select * 6 from my_view; 7 s long; 8 i number := 1; 9 begin 10 s := 'crate table '; 11 open c1; 12 loop 13 fetch c1 bulk collect into my_array limit 1; 14 s := my_array(i).fin_dates_id; 15 exit when c1%notfound; 16 end loop; 17 close c1; 18 dbms_output.put_line(s); 19 end; 20 / declare * ERROR at line 1: ORA-01403: no data found ORA-06512: at line 14
A no-data-found, because you are referencing my_array (i), when I is null. Just move the OUTPUT when a line upwards as well as your code runs better:
SQL> declare 2 type view_my_type is table of my_view%rowtype index by pls_integer; 3 my_array view_my_type; 4 cursor c1 is 5 select * 6 from my_view; 7 s long; 8 i number := 1; 9 begin 10 s := 'crate table '; 11 open c1; 12 loop 13 fetch c1 bulk collect into my_array limit 1; 14 exit when c1%notfound; 15 s := my_array(i).fin_dates_id; 16 end loop; 17 close c1; 18 dbms_output.put_line(s); 19 end; 20 / hello PL/SQL procedure successfully completed.
Then next to fix things are:
-do not use the long data type Use a VARCHAR2 or a CLOB.
-' Cashier' should probably be 'create '.
-in bulk, treatment with limit 1. Now you have the worst of both sides: line by line, treatment and slightly more complex syntax
-Variable increment I
-Easier (and thus better) use a loop FORI hope this helps.
Kind regards
Rob.
Maybe you are looking for
-
Satellite A40-151: what DVD-/ + R - RW can I use?
HelloDoes anyone know what dvd-/ + r - rw I can put in a portable satellite a40 151, I'm curious about a toshiba TS-L532B but I get conflicting answers and have need to know if the caches will be adapted, or if there is any other brand that will work
-
I have to buy Windows after replacing my hard drive?
I learned that my portable (HP DV-6) needs a new hard drive. Looking at the steps, I'm ready to do it myself, but I was also told that I have to buy another copy of windows? Is this true or can I use the key that came with my original disk?
-
Module NI 9871 detailed hardware specifications
Hello I want to learn the details on the box for the NI9871 module specifications... I seek but manuals just give me the pins, topology, etc. of bus connections... How can I learn the positions of RJ-50 x 4 Sockets Windows, windows connector and 15-p
-
Wireless Mobile Mouse 1000 matching question
Hello I have a question about the Wireless Mobile Mouse 1000 matching. As my work still smiling but my receiver lost nano, my friend gives me his nano-receiver due to the fact that his mouse has beaten already. How can I pair them up in my computer?
-
I have been running Virtual PC for Mac 7.0.3,, on my 1.67 GHz PowerPC G4 (OSX 10.4.11) years, but recently, when I click on the button 'Start Up', I get a screen with the following error message: NTDLR: Fatal Error 2592reading BOOT. INI. Also, I am r