Ldapsearch_s does not return anything
Hi,
I try to use the code below, but somehow retval is always 0. Any idea?
ldap_user := 'cn=orcladmin';
ldap_passwd:= 'welcome';
ldap_base := ' '; --'cn=Login Server (portal30_sso)';
v_session := DBMS_LDAP.init(ldap_host, ldap_port);
retval := DBMS_LDAP.simple_bind_s(v_session,ldap_user, ldap_passwd);
my_attrs(1) := 'userpassword';
retval := DBMS_LDAP.search_s(v_session,
ldap_base,
DBMS_LDAP.SCOPE_SUBTREE,
'objectclass=*', --'cn=TURKER',
my_attrs,
0,
my_message);
Thanks.
Hi Nilay:
Can you tell me more about your environment. Im trying to reproduce this on my system. How are you executing this code?
Can you give me step by step what you are doing.
Thanks,
Jay
Similar Messages
-
Java Perpared Statement does not return anything
Sorry fo bad language.
I have connection with Oracle 8 with JDBC thin drivers. Almost all queries, simple and very complex are doing well, except one:
select srcCard.object_id
from objects srcCard, params attrs
where
attrs.attr_id = ?
and attrs.object_id = srcCard.object_id and
attrs.value=?
union
select srcCard.object_id
from objects srcCard
where project_id = ? and
object_type_id in (
select object_type_id
from object_types
start with object_type_id=?
connect by prior object_type_id=parent_id )
and srcCard.name=?
Such query get parameters and don't return anywhere. Java waited for 48 hours and still continue to wait results from Oracle. If I look at sessions list in Oracle (with DBA studio), there is no such query.
The most strange thing is: query is not work only in Weblogic. If I try to run it with sql navigator or with sqlplus it returns data normally (with extract equal arguments).
Where is the bug? Is it known bug of driver, Oracle or configuration of Oracle?Hi, Jason,
user11925071 wrote:
Hello All,
I have a 8i DB and SQL Plus. in SQL Plus, when I do "desc cat", it gave me this:
SQL> desc cat;
Name Null? Type
TABLE_NAME NOT NULL VARCHAR2(30)
TABLE_TYPE VARCHAR2(11)
However when I do "select * from cat;", I though I would get a list of tables, but instead I got "no rows selected". Why is that?The most likely reason is that the table has no data.
Try:
SELECT COUNT (*)
FROM cat;to check.
And the second question is very likely related to the first. I can "desc user_constraints" but when I tried to select some constraints, I got error like this:
SQL> select constraint_name, constraint_type from user_constraints where tname = 'county_of_use';
select constraint_name, constraint_type from user_constraints where tname = 'county_of_use'
ERROR at line 1:
ORA-00904: invalid column nametname is not a column in user_constraints. Perhaps you meant table_name.
Text inside quotes is case-sensitive. Most names are all upper-case, so you proabably want to say
SELECT constraint_name
, constraint_type
FROM user_constraints
WHERE table_name = 'COUNTY_OF_USE';Edited by: Frank Kulash on Sep 22, 2009 5:12 PM
Originally said "you probably want to say constraint_name'. I agree with the next 2 replies; table_name is more likely. -
Any more information on :IMAQ Count Objects" vi?
It looks like you are correct. I was thinking of the input to "Complex Measure", which requires the binary image. I started with IMAQ back when we had to chain all the routines together ourselves, instead of having a single vi that did everything for us.
Bruce
Bruce Ammons
Ammons Engineering -
Why does my function not return anything when I create as a schema object
I have user ABC who owns several tables some of which have foreign key constraints.
I have user XYZ that has been granted access to all tables owned by user ABC.
When I create a function as user XYZ using following I get no return when I issue:
select XYZ.ztm_tables_depended_on('ABC', 'A_TABLE_OWNED_BY_ABC') from dual :
Please see after function definition.
CREATE OR REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND 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 || '.';
ELSE 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 embed 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';
FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND 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 || '.';
ELSE 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 explained the probable reason.
See the 'How Roles Work in PL/SQL Blocks' section of the database security doc for the details
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#i1007304
How Roles Work in PL/SQL Blocks
The use of roles in a PL/SQL block depends on whether it is an anonymous block or a named block (stored procedure, function, or trigger), and whether it executes with definer's rights or invoker's rights.
Roles Used in Named Blocks with Definer's Rights
All roles are disabled in any named PL/SQL block (stored procedure, function, or trigger) that executes with definer's rights. Roles are not used for privilege checking and you cannot set roles within a definer's rights procedure.
The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that executes with definer's rights queries SESSION_ROLES, then the query does not return any rows.
Roles Used in Named Blocks with Invoker's Rights and Anonymous PL/SQL Blocks
Named PL/SQL blocks that execute with invoker's rights and anonymous PL/SQL blocks are executed based on privileges granted through enabled roles. Current roles are used for privilege checking within an invoker's rights PL/SQL block. You can use dynamic SQL to set a role in the session.
See that line starting with 'All roles are disables in any named PL/SQL block'? -
IPhone 4 does not detect anything on Bluetooth
My iPhone 4 has appearantly a glitch in hardware...??? I turn on bluetooth and it can search for devices till the battery runs out and that's it. I don't think that this is a software error, as there are plenty of iP4's amongst my friends who don't experience this error with the same iOS version as I have.
ANything I can do about it, or I just have to return it to my seller and ask for repairs?
Tnx
LaurisI can't pair it with anything, cause it just does not detect anything. Try to imagine... You go to settings--->bluetooth--->turn it ON and that is it! It starts the search and never finishes... The phone can search till the battery dies, but nothing. And I know that a friends iPhone can connect ot my cars bluetooth, but mine does not even find it. Finds nothing... NO apple gadgets, no other gadgets... It would be a success if it would find something and then the pairing would be a different issues, but if the search for a device never stops (not even to show that the iPhone can't find anything)...then I'm confused... and dissapointed..
-
I bought my macbook pro this morning. When I turned it on it led me through set up with voice over. I finally quit VO but my pointer is not working. It moves but does not open anything. Can anyone help?
ladislavfromcygnet wrote:
Thank you Shootist007. I cannot do even Update now. I probably should have spent the same amount of money on a new IMac!
No not really. If this is a brand new Macbook Pro take it back for a refund. Apple has a 14 day No Questions Asked return policy for Full refund.
Take it back, get the Full Refund (DO NOT LET THEM TRY TO FIX IT. YOU BOUGHT A NEW COMPUTER NOT ONE THAT HAS BEEN WORKED ON OR NEEDS TO BE FIXED) and then decide whether to buy another Macbook Pro or the iMac. Or you could return it, get the Full refund and buy some other brand computer. -
# Question
When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box, but goes to some random collection of pages often from months ago. Very frustrating - can anything be done to COMMAND it to save current pages and re-open there? (As I said, I have this box checked in the options, but it does not work ..Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
Could be many things, we should start with this...
"Try Disk Utility
1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
*Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
3. Click the First Aid tab.
4. Select your Mac OS X volume.
5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
http://docs.info.apple.com/article.html?artnum=106214
Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
(Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
Do they launch OK while in Safe Mode? -
Gpib, wait does not return after timeout
I use this code line:
gpibDevice.Wait(GpibStatusFlags.DeviceServiceRequest | GpibStatusFlags.Timeout);
I want to wait for a Service Request or a Timeout.
The IOTimeout is set to 1s, but the Wait function does not return after 1s.
What is the problem? Do I have to set any other timeout?Hi Gregor,
I am sorry but this link that you send, did not help me. I am using this code within a c# application. This is a bit
different to LabView. Here is my full code:
gpibAddress = 1;
timeoutValue = TimeoutValue.T1s;
gpibDevice = newDevice( 0, gpibAddress , 0 , timeoutValue );
gpibDevice.IOTimeout = timeoutValue;
gpibDevice.Clear();
gpibDevice.DefaultBufferSize = receiveBufferSize;
gpibDevice.SerialPollResponseTimeout = timeoutValue;
gpibDevice.Wait(GpibStatusFlags.DeviceServiceRequest | GpibStatusFlags.Timeout);
And I still have the Problem, that this Wait Function does not return after the
timeout value - here 1s. Do I have to configure anything else from the GPIB device? -
IPhone black screen does not show anything, but I can hear that the device works. I hear the lock open the screen and hear the iPod but the screen remains black!!
It's happened to me before as well. Try holding both lock(top right) and home buttons simultaneously until u see a slight flash of wight then just reboot it normally. If that doesn't work try restoring your device from itunes
-
I have my iphone4 activated and working since 3days, i purchased it from ebay with 1year warranty, when i check the serial number from Apple store at Bangalore Forum mall, they say that it does not show anything and 'OUT OF WARRANTY'.
Now i have a problem in it, all icons just shake and system hangs, needs restarting.You need to go back to the person you bought it from. Sounds like they may have sold you phone that is not as described.
Did you check the warranty status before purchasing it? -
WebI does not return failed when scheduling a report which only holds parti
WebI does not return failed when scheduling a report which only holds partial results.
We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
When running the report manually, it works file.
The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
The version we have is BOXIR2-SP4.
Ok. Issue identified.
The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
Edited by: Karlgren Michael on Sep 17, 2009 1:22 PMHi ,
Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
Problem Statement:
Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
Recomended Solution:
Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
Thanks
Salini -
My PC does not return to the source document I print from
I had a setting control for
this in XP but can't find the page I got it from.<o:p></o:p>
<o:p> </o:p>
In ANY application or browser
this happens. I print from a specific Excel workbook, by example, when I
have a number of them open. The system does not return to the workbook I
printed from. This is maddening and causes all kinds of issues.
Searching the web for this now produces nothing and I know I can't be the
only person who experiences this.<o:p></o:p>
<o:p> </o:p>
This is a Windows 7 platform
in a networked business environment. I'm running the Classic Menu add-in
from Addintools because I can't stand the ribbon and have never liked it.
In Windows 7, I'm running a couple of other add-ins that restore the XP
use of the task bar properly so one can work efficiently.<o:p></o:p>
<o:p> </o:p>
None of the add-ins are what
is causing this issue because I'd run the same Classic Menu add-in on the XP
box and it had the same issue until I found the work-around that I can't
remember now.<o:p></o:p>
<o:p> </o:p>
Has anyone else experienced
this issue?<o:p></o:p>
<o:p> </o:p>
Jeff Lynch<o:p></o:p>Hi,
"I print from a specific Excel workbook, by example, when I
have a number of them open. The system does not return to the workbook I
printed from."
If I'm not misunderstanding, do you mean that the workbook is automatically closed after you print from that workbook, right?
As I know, if we use the default ribbon in Excel, no matter in Windows XP or Windows 7, the opened workbook should be stay opened after you print from that Excel workbook.
So the question is that: what is the version of office? What is the Classic Menu add-in you're running now? Did you manually download and install it to your system? Could you please share a picture with us about the add-ins you're using?
Yolanda Zhu
TechNet Community Support -
Very Very Urgent Issue: Restricted Key Figure does not return any data
Hi all,
Please help me solving this urgent issue.
created customer exit variable on characterstics version and also
other customer exit variable on Value type.
I coded that in variable exit. Problem is when I include these in
restrickted keyfigure My query does not return me any data.
But if I remove from restrickted key firgure and put it as normal
charaterstics I see the variable is getting populated.
Also in RSRT the SQl generated when these are included in RKF is not
correct.
I debugged and know they are getting populated. As when included in RKF
I can also see the values of customer exit variables from information
tab.
I also know that there is data in cube for those restrictions.
I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
Thanks
SAP BW
**Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any dataHi,
Everyone out there this is very urgent. If someone can help me solving this problem.
We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
I posted one oss notes also regarding this issue. But got no reply from SAP.
So, Please help me solving this issue.
Thanks
SAP BW -
The "Awesome Bar" is not working. It does not recall anything from the Bookmarks
Just updated to new Firefox. In the past, when I would start to type a site in the address bar firefox would complete it as it was already in my bookmarks. But now it does not do anything. It just sits there waiting for me to complete the address. I could start to type Netf and it automatically finish Netflix.com
Why is this happening. Also, for the first couple days of the new version I had to go back into Tools, Options and reset things at least 3 or 4 times before they would finally stay the way I wanted them.
I would tell it Never Remember History and after while I would look and it would say, Remember History. I wanted a Blank Start page, and it kept changing it. It's okay now but the Awesome Bar is not working at all.Do your bookmarks show up in the auto-suggest drop-down list?
''If not:'' Under Options > Privacy, in the bottom section, does it still show that Firefox should suggest Bookmarks in the Location bar?
If auto-suggest works but the autofill isn't happening, you could double-check that it has not been disabled here:
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box above the list, type or paste '''autof''' and pause while the list is filtered
(3) If the '''browser.urlbar.autoFill''' preference is bold and "user set" to false, double-click it to switch its value back to the default value of true. That should work in new tabs.
It's it already true, hmm, I wonder whether this is a private browsing issue? (I didn't test with automatic private browsing.) -
FM HRTRV_IF_GET_TRIP does not return USERDATA
Hi, it's me, yet again...
I'm using the FM "HRTRV_IF_GET_TRIP" in FITE_VC_GENERA_DATA in a post exit of comp-controller method "ON_SHOW" to get the structure/Table USER/PTK99 from the TE Cluster for binding to the context afterwards. At least that's the plan. The FM does not return me the data I expect in parameter USERDATA, although there is data in the TE Cluster and within the FM, I can see the global Table USER being filled whilst the macro RP-IMP-C1-TE. But this data is not further process neither is seems the strucutre USERDATA to be touched at any point of the FM. Am I calling the FM 'wrong' in any way? I'm close to making an implicit enhancement at the end and forcefully fill userdata from user....
Too long, didn't read: USERDATA is not returned filled --> WHY?
CALL FUNCTION 'HRTRV_IF_GET_TRIP'
EXPORTING
employeenumber = wd_assist->GS_COMMON_RFC_INPUT-employee_number
tripnumber = lv_tripno
* LANGUAGE = SY-LANGU
* CALCULATE_AMOUNTS = 'X'
* GET_TRIP_FROM_MEMORY = ' '
IMPORTING
* FRAMEDATA =
* STATUS =
USERDATA = ls_user " should contain cluster values, but it doesn't
tables
* RECEIPTS =
* ADDINFO =
* GUESTS =
* TEXT =
* MILEAGE =
* STOPOVER =
* DEDUCTIONS =
* COSTDIST_TRIP =
* COSTDIST_STOP =
* COSTDIST_RECE =
* COSTDIST_MILE =
* AMOUNTS =
* ADVANCES =
return = lt_bapiret " says method was executed successful
In the insides of the FM:
* IF CALCULATE_AMOUNTS <> 'X'. "XJY
* import the trip because it was NOT imported before
READ TABLE T_PERIO INDEX 1.
TE-KEY-PERNR = T_PERIO-PERNR.
TE-KEY-REINR = T_PERIO-REINR.
TE-KEY-PERIO = T_PERIO-PERIO.
TE-KEY-PDVRS = T_PERIO-PDVRS. " Once this line is executed, the global table USER is fileld with the data I expect
RP-IMP-C1-TE.
* ENDIF. "XJY
if t_perio-abrec = '0' or
t_perio-abrec = '1'.
clear te-key-pdvrs.
import beler from memory id te-key.
endif.
I hope somebody has ever used this one and can tell me what I'm doing wrong...
Cheers, Lukasgood to know. that you have already implemented similar thing. In our case if employee want to pick a manager he will only be given option from a custom table entries.
They way i was thinking was that there will be a checkbox that will say "Override Approver"
and when that will be checked text filed will be enabled with search help restricted to custom table entries.
I have one question. When I am enhancing FITE_VC_REVIEW and adding field in that view, I m finding it hard to track it. Looks like adding to General data screen will be much easier.
R u using ABAP memory to track field and use it at SMOD or you are using SAP memory ?
I am just starting on this one and not expert at webdynpros.. will ping you if i need any more help
and yes i just added following like in FM HRTRV_IF_GET_TRIP
read TABLE user INTO userdata INDEX 1
to get it to load userdata..
Maybe you are looking for
-
IPhone no longer can sync with iTunes on Mac Intel Mini
I have an original iPhone (not 3G). It was working fine until today. Today when I booted my mac mini, Software update said that there was an iTunes update. I downloaded and installed version 8.2 of iTunes. When I connected my iPhone to my mac mini (I
-
How can I get iPhoto to see the edited iPhone 4s photo?
I have a new iPhone 4s. I take a picture. I edit it and save it to the iPhone. Then, I sync my phone with my Mac, open iPhoto. Only the original photos appear, not the one I edited and saved. Yet, if I e-mail the photo to myself, I can see the ed
-
How can I download PDF export again wiped from my computer?
I have paid for PDF Export and it has disappeared from my computer. How can I download it again?
-
Help Router WRT320N Error Message 323
I don't have any other routers this is my first. I'm trying to set up the WRT320N Linksys router to my desktop. When I put in the disk and set it up when it comes to the last step it gives me error 323 could not access new router or gateway. I have e
-
How do i get multiple internet screens going on Safari?
How do I get multiple internet screens going on Safari at the same time?