Yet another (but hopefully different) question about hashCode()

I hope you can bear with me here, because this issue is long enough.

I was stuck with a problem for quite a while: how to determine a hash for a ratio has / b, involving BigIntegers (and therefore, potentially very large values for a and b ). I would also add that it is a problem of efficiency , not a general.

Curiously, the comparison of the two reports is NOT a problem, as this can be done gradually and includes a few very quick due diligence; but hash - especially focused on the value of hash - a particular problem, since it is to calculate a value that must be equal to any value.

Simplest is, of course, reduce the fraction, then calculate the hash, but I'd like to eliminate the step of reduction (which always implies division, even if the fraction cannot be reduced; and at least 2 if possible) if I can.

If someone ate a pie of brain, I'd be very interested to know your thoughts, even if they are not complete solutions. What worries me here is that my math is simply not up to the problem.

Winston

Published by: YoungWinston on May 14, 2011 22:13

jverd wrote:
This will give zero in all cases when N< d.="" so="" at="" the="" very="" least,="" you'd="" have="" to="" test="" first,="" and="" flip="" to="" d.divide(n)="" in="" that="">

I know.
50% of the aura N/A Ratio = 0. Then, they will end up in the same compartment.
But the method of random generation of correct Ratio? Or they must be distributed to the Pseudo-hasard between 0 and 2 ^ 2000?
Your method strongly favours ratio between 0 and 1 and discriminates against the reports between, say, 25 and 26.

Published by: baftos on May 14, 2011 22:36

Tags: Java

Similar Questions

  • Different questions about Satellite L855

    Dear community of Toshiba...

    I bought a Toshiba laptop as for my study Mediadevelopment a year and half ago. I got Toshiba Satellite L855 edition.

    When I received my order, I was very happy with it and I knew that I would succeed on this nice unit programming.

    After 3 weeks of use, I already had a scratch right next to the camera. And I must admit I really handled the phone with care. I ordered a case of neck and he had with me in a laptop bag. Even when the lid is closed there is small scratches around my laptop and it started to worry about what would happen.

    While watching an episode of the game of Thrones. I noticed a red dot... just in the middle of the screen. And I don't want to be arrogant, but I have to say that it's not cool when you already have a failure of pixel using a laptop as about 1 month.

    I received an update of a driver of my DVD player tray. And toshiba TEMPRO told me there was a BLUERAY drive in my notebook... but this was not true... Just another point that disappointed me.

    I ordered an upgrade for Windows 8... So I was able to develop applications for Windows 8. It's a very nice OS BUT I can't use my brightness buttons yet more... The display goes just in black, and aint there is no way to fix it, but to restart my computer and that is very annoying when you are programming.

    The fan on my AMD card also gets really hot while doing nothing. I know how to check if there are a lot of processes running, but it heats up by simple same process (it's even my glass cool soda Cook until temperature hot lol!)

    And now also the reason why I ask for your support here, when I close the lid of my laptop. It closes smoothly... There is a crackling sound and the back cover looks like it rises while I close the lid.

    Now after all I lost a little hope in my notebook. And I repeat, that I really handled it with care... I don't even dare to walk with her while she is closed in my hand. But those things so much that makes me sad. Just because of I still need to study 3 years more and had to pay a lot of money for this... I'm sad that sooner or later things will just get worse...

    I therefore ask you guys, you people don't know what I can do?

    Kind regards

    PS: Sorry for my English!
    Jay

    Hi Jay

    In general the notebooks are not so sensitive devices so I put t know how all this can happen, I mean with scratches and clicking noise. It is logical that laptop may not always be as good as new.
    I handle my books carefully, too, but they are not in perfect condition more.
    Cooling fan: try to reduce the activity of fan cooling cooling method to change option.
    Control Panel > power options > change the power plan settings > power plan advanced options > Toshiba power Saver saver > cooling method change for optimized battery
    This should reduce the activity of fan cooling.

    > Then I ask you guys, people you know what I can do?
    It is not easy to give you the correct answer to this question. What you can try is to contact Toshiba service and ask for a tip. They should have experience with this, and they are in constant contact with Toshiba, so they should have enough information about the situation.

    By the way: several people have reported on this message Tempro. You should not be disappointed on this matter. It is an automatic procedure and such errors may occur.

  • Different questions about Satellite L450D.

    Hello

    I bought this phone a few months ago and im in big trouble!
    First of all, my first problem is that when I tried to activate my mcafee trial he said he had expired even though I only started the laptop! But this problem does not matter anyway as I had more problems.
    Finally in any way since occasionally my laptop seems sort of crash and freeze etil will say windows Explorer is not responding so then I have to restart the laptop and then something comes to the top of the windows saying check the "consistency" and she often does! whatever the problem, I do not know and also incase you think its virus or spyware or something like that, is not! because I had Norton 2010 on my laptop, and then deleted norton and tried AVG and still nothing was found. I also did a scan with malwarebytes and nothing was found!

    Now, as of today, I got another problem.
    I booted up the laptop and it says that windows was not genuine, when it is clearly authentic because it has been purchased by Argos and I even went in System Accessories, and he says it's activated and authentic but I was receiving messages saying that it was not authentic!

    Since I've had this laptop I've had problems with him and im starting to think it's bad because I deleted everything out before because the system was not going to go right so I used the data used in the D drive.
    Even when I did a clean install it always gives me problems! I think it's a guy from the fault, what can I do?

    I brought to Argos and they kept during the night, but nothing happened I could have guessed! and they don't give me a replacement or refund because only they see there is no problem with the laptop when there is clearly because I had problems! Now it is under standard toshiba warrienty so what I have to do?

    Thanks please reply!

    Ryan.

    Post edited by: PauPau

    Hello

    To be honest, it is not easy to say what to do in this situation.
    When you have several different problems with the laptop, it is always best idea to reinstall the OS and test it with the factory settings. OK you've done, but I don't know how you did that. Maybe you started to install favorite software and all of a sudden he started again and again.

    This activation with McAfee is already reported in this forum, but of course, there must be a problem with the connection to the server from McAfee. If this has nothing to do with Toshiba. In my opinion, you must remove McAfee immediately after clean operating system installation. I recommend you to use http://www.free-av.com/
    It's free and excellent antivirus that uses less system resources and run extremely stable. I use it for years.

    These freezing issues can be the result of many different things and it is not easy to say why this is happening.
    # Enter the BIOS and set it to default settings
    # Try please install new OS by using recovery image.
    # Remove McAfee and install Avira Antivirus
    # Remove Tempro system
    # Use own OS preinstalled for day or two to see if all of these questions will happen again

    Let us know if all these issues bad happen.

    BTW: what model of laptop do you have exactly?

  • Different questions about Satellite T130

    Hi all - firstly, newbie alert. Just signed up. First post. Be nice...

    Bought a T130 off eBay. Worked fine at first with the General navigation & stuff.
    One day tried to open the Userguide PDF & everything started to go VERY slowly.
    Finally, he opened. Smelt a rat. Start Adobe reader on it of own - VERY slow. I think that corrupted drive.

    Try to uninstall - this is not okay.
    All ice - popup eventaully saying "management console has stopped working" (or similar). Now, I'm worried.

    A lot of disk activity - disk is maybe bad, maybe fragemented.
    I defrag - it's nice. I have run chkdsk - it is slow, but ends (fixed a few things - probably because I had to power supply without stopping).

    At one point, he wouldn't even boot & requires a stop. I think I'm fried, but when I turn it on to start ok... WTF?

    I found a few other posts & Google suggesting corruption OS searches, & it looks like the deal for me.

    But it is a laptop - I have no Windows 7 install media.
    There is no installation of recovery partition (that I can see). So, how to reinstall the OS?

    Hope someone can help me here.
    My first experience with Toshiba laptops was not nice...

    Thank you
    Steve

    Hello

    I think the system is corrupt and the operating system must be installed again. (as suggested by your own).
    You didn t get the recovery disks because there was an option that allows you to create a clean recovery disk!
    Try to start the new laptop and check if the Toshiba recovery disc creator is installed and that you would be able to create a recovery disk.

    If this is not possible, then you will need to order a drive recovery right here:
    https://backupmedia.Toshiba.EU/landing.aspx

    Welcome them

  • Yet another space between Divs question

    Hello

    I'm on DW CS4 and PS CS4 on an Intel Mac.  Here's the site: www.larryparrishpiano.com

    (You may have to refresh the page from a page layout sooner - I didn't publish it, but if not, how you can see)?

    I can't understand why the space located under the navigation won't disappear.  I want that he meet flush just above the content area.

    I checked all my margins and settings of h1 - I tried using the "clear: both ' line etc.." I even put some margins to-1px to try to get space to collapse.

    I appreciate any help on this.  Thank you very much

    Frank B.

    I'm in bed! His margin/padding to the default empty

    tag below:

    & nbsp;

    If you don't need it, then delete it. If for any reason any you then set the margin and padding to zero:

    & nbsp;

  • Questions about the management of specific nodes in different hierarchies

    Hi all

    I have a question about the specific management of some particular set nodes, which are located in different hierarchies within a same version.

    I want to know if there is any editing made to certain properties of these specific nodes or if the nodes are deleted/moved/edited approval to be triggered for the data manager.

    or should not allow users to edit (adding/moving/deleting/changing property values) or those specific members.


    According to my understanding of the nodes of domain prevents the removal of nodes, but I don't want my Member prefix/suffix, domain is the only way to prevent the change.




    Thanks and greetings

    Madhu

    We have an obligation to not allow a node to remove or deleted without the approval of the admin, so I created a Boolean property AllowDelete is false, which is substitutable, default and is available only in a category of property Admin, for which most of the users do not have access.  Then, I created a validation of PropRemove with an error message that tells the user to contact a user admin to remove or delete the node.  The admin can change the AllowDelete to true, then can either remove himself or to allow the user to do.

  • I want to ask a question about my mobile mouse memory. I googled my problem and arrived at a forum. He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    I want to ask a question about my mobile mouse memory.  I googled my problem and arrived at a forum.  He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    You can ask your question here.

  • I have a monthly subscription to Adobe Revel. You received my payment for September 15, 2015 &amp; October 15, 2015 according to Adobe, but Revel shows that I have only a free basic account and that it was yet another payment. What is happening on h

    I have a monthly subscription to Adobe Revel. You received my payment for September 15, 2015 & October 15, 2015 according to Adobe, but Revel shows that I have only a free basic account and that it was yet another payment. What happens here? You people need get the bugs out of your cloud services. I signed up with [email protected] that the Adobe Revel server fails to allow me to login, but accounts Adobe server connects me and says I am free on my subscription to Revel. Is happening here? I canceled once on this issue! Want to lose me again, this time for good? I'm telling you guys, I buy recently bought items 13 (of course just before you've released 14) on CD-ROM, because your cloud suck the Revel program! Sincerely, [email protected] and this is the email only I use.

    I did some research and your account indeed shows you paid AND that the subscription has expired (which is false!). We experience the Adobe Store people to examine it.

    Please accept our apologies and you are good to go now. You've been comped for the year.

    Kind regards

    Glenyse

  • Hello, I have a question about yet.

    So I have a question about yet, I have a summer Member creative cloud for almost a year now I have just completed a project on first Pro CC and I'm ready to burn to a dvd. I guess I need more and who do not settle when I downloaded Premiere Pro off creative cloud. So, how to fix this problem? Any help would be greatly appreciated,

    Thank you.

    Hi Scott,.

    Please see CS6 still not installed with creative cloud

    Kind regards

    Sheena

  • Question about "Windows 8.1 DG to Windows 7 Pro 64-bit" and Windows product key

    I have acquired a recnet ThinkPad T450 fdrom a retialer online (NCIX) and I hav ea a few questions about the installed Windows operating system.

    Before I just go further, HRE are some information about my particular system.

    Lenovo ThinkPad T450

    Model: 20BV00BUS

    CPU: Intel Core i5-4300U

    RAM: 4 GB

    Under the product description, it was stated "Windows 8.1 DG Windows 7 Pro 64." My understnading, the ThiknPad has been installed with Windows 8.1, but downgraded to Windows 7. There is also a Windows 8 Pro badge sticker at the bottom of the matchine.

    Is it possible, at the end of the user/consumer, to alter the functioning ti repressive back Windows 8.1?

    Can I create a recovery with Windows 8.1 disk?

    A separate but related matter relates to the Windows product key.

    I noticed the Ultrabook do not come with a sticker / label with the Windows product key (i.e. COST). Some quick research indicated that the Windows key is programmed into the BIOS.

    This indeed true (I wish an audit)?

    The key is visible in some way (for when you need to reinstall the operating system. I have not tried to enter the BIOS at the moment)?

    Thank you for taking the time to consider my question.

    Kind regards

    Victor L.

    Hi Victor,

    I'm in the same boat as you type, but want to keep the facilities of Windows 7 rather than pass them to 8. Just like you, I buy our Lenovo from different retailers and they come with windows 7 installed through the Windows 8 lower upgrade program.

    We had one or two laptops come with a recovery media (for windows 8/8.1 only) but have noticed that all laptops now come with no physical media or codes for the recovery. WIN8 stickers, you described is more came with the license key on the sticker (it comes to stop you using the same license again and again, microsoft will get more money if you buy another license etc.). I also saw that the key is essentially located in the BIOS but were not able to test what we use any of windows 8. I use it even at home!

    To answer your question, you can get a recovery of Lenovo for Windows 8 media!

    Go to the following link: https://support.lenovo.com/us/en/lenovorecovery

    (It help you understand why this method is used on this page as well)

    Select Start,

    Please have your serial number of your laptop, (to find it go to this link: https://support.lenovo.com/us/en/find-product-name)

    If you qualify (which you will very probably) Lenovo will ship for free, recovery disks give it a go, took me 2 minutes.

    I hope this helps.

    Best regards, Max.

  • A few questions about installing Windows on a Mac

    Hello world.

    I'm considering installing Windows on my 2006 iMac. I have a few questions I was hoping you might be able to help me with that. I know that this machine will run Windows 7 or 8, in terms of system resources, but probably doesn't have the RAM for 10.

    The girl has reached Apple Obsolescence and no longer can be upgraded to newer versions of Mac OS. Unfortunately, this also means that she can not get the latest version of iTunes and don't talk to my phone. But she still my entire library of music.

    I know that used at least iTunes is available on Windows, but I seem to remember that they took it. Y at - it an option to put my iTunes music on an iPhone 6 in a Windows environment? I don't mind if I need to convert files or otherwise work for her. I have just a few old out-of-print stuff that I really miss being able to listen to anywhere other than my office.

    I'm pretty much stuck with versions before 10, due to the RAM thing. Honestly, I haven't used Windows since around 1998, with the exception of a terminal XP at work, so I don't know much about it. Any recommendation on which version is the best? And I can buy a copy online directly from Microsoft?

    If I would be better off buying a new laptop for very cheap, it is also a possibility. But my Mac still works well, despite not being not supported for updates, and I hate wasting perfectly good material. I just don't have the money for another Mac right now.

    Hello

    Any questions on iTunes, the best place to ask the community Apple iTunes is their program, not Microsoft.

    @@@@@@@@@@@@@@@@@@

    Microsoft sells more XP, Vista, 7, or 8/8.1.

    End of sale: http://windows.microsoft.com/en-au/windows/lifecycle#section_2

    Try Amazon.com, etc.

    See if this helps you:

    "Install Windows 8.1 on a Mac".

    http://Windows.Microsoft.com/en-us/Windows-8/install-Windows-on-Mac

    And take a look at this article:

    "By using Boot Camp to install Windows and tools from dev on your Mac"

    https://msdn.Microsoft.com/en-us/library/Windows/apps/jj945423.aspx?f=255&MSPPError=-2147217396

    "Boot Camp 5.1: frequently asked questions about the installation of Windows 8.

    5.1 Boot Camp supports operating systems Windows 8.0 and 8.1 of Windows on Mac with Intel processor.

    https://support.Apple.com/en-us/HT201457

    See you soon.

  • Question about compression in essbase ASO

    I have a few questions about to define a dimension of compression in Essbase ASO apps:-

    1. is it a good idea to have the size of compressor in app Essbase ASO.

    2. I read somewhere that said it would not be good idea to have the compression period dimension where months YTD neighbourhoods and quarters of the year. So should we put compression on any other dimension dynamic calc and roll ups and have less none of level 0 members stored.

    3. I have observed that when we level 0 export from an ASO application with compressed size vs ASO application with no compressed dimension, there is a difference in size of data export file. I'm not able to understand why it is so. I understand the difference between the size of data (.dat file) between Tablet app vs app uncompressed file, but do not understand the difference when the data is exported to a .txt file.

    Thank you

    (1) compression dimension is not mandatory, but it contributes to the performance. The compression dimension is a dynamic dimension. We need the column headers in a data load file. Ideal compression is achieved if the number of leaf-level members are divisible by 16.

    (2) ASO tuning is an art as much as a science.  The best choice depends on the distribution of data in the database.  and it's different in each database.  Read all the information and then test the various options.  Try it with time as the compression and then try with the next best dynamic dimension defined as dimension of compression.  I've linked a doc tuning which is version 7, but has a very detailed discussion of the dimensions of compression.

    http://www.Oracle.com/technetwork/middleware/bi-Foundation/4822-tuning-Essbase-ASO-WP-133014.PDF

    (3) the format of the header (layout) of the export may be different when you use compression vs when you are not using compression.  It will certainly be different if you use another dimension for compression.  I expect the size of the file to edit when the compression setting is changed.

  • I have a question about Adobe TDC license on two devices.

    I have a question about Adobe TDC license on two devices.

    I want to use Adobe of the COMMON tariff on both devices.

    and I heard that it is possible.

    but I need an official document from Adobe.

    You know this part please address the link or documents, please.

    Thank you.

    Best regards.

    Hello

    You can install and activate a license creative cloud on 2 computers, regardless of their operating system. But you must use one at a time, in other words you should not share your license with another user. A license is for a user that can be used in different places as the home and office.  However, creative team of cloud subscription, you can have multiple licenses under a subscription that you can assign to users. You can consult the following links. Answer to your question is mentioned in the first link.

    Adobe Creative Cloud FAQ

    Licensing and terms of use | Adobe

    You can also check the following links for creative team of cloud and management licenses

    Creative cloud for teams. Adobe Creative Cloud for businesses

    Manage your cloud of Adobe Creative for the composition of teams

  • Questions about the implementation of clusters of storage and DTS on active cluster

    I have a few questions about the implementation of clusters of data store and SRS storage in VSphere 5.1.

    We have a data center with about 15 HP blades and a few servers non-lame.  The hosts are all either VSphere 5.0 or 5.1.  Our back-end storage is an EMC VNX 5700 with about 20 stores of data.  All the VMWare is managed by VCenter 5.1 running on a dedicated physical machine.

    Currently, each data store is used individually; No piles of data store are put in place.  When a new virtual machine is created, the administrator usually chooses the data with the most space store.  Periodically, we will go back and manually storage vMotion machines to balance the load.

    Recently, we have expanded the VNX storage, so we now have LUNS in different pools, with different levels of performance.

    What I would do is set up for the data store clusters, so that us when a virtual machine is created, the administrator must not know what data store is in which pool.  Also take advantage of the DRS storage so that the burden of storage will be "refine" himself a little.

    I know the setting up of a cluster of storage in a 'clean' environment is quite simple, but my concern is creation/conversion data warehouses existing in active production in the cluster, while they are used.

    If I access the screen "data warehouses and store data from clusters ', right-click on the data center and create a cluster, and then move the various data stores in the new cluster, will there be an interruption in the production running systems?

    I also wonder about activation of storage i/o control.  It is not currently enabled on data warehouses.  I know it's useful for the StorageDRS, but will be allowing any negative impact on the system?  If I turn on the warehouses of data, is there anything else I should do or set in addition to all that allows him?

    Finally, we are in the process of Site Recovery Manager configuration.  SRS has an impact on the configuration of the data clusters and DTS store?

    Thanks in advance for your comments.

    Mike O.

    Gregg Robertson wrote:

    Hello

    Clusters of data and using DTS store doesn't impact RS even if you create a cluster of data store for storage of replicated data and another for everyone else, this way you machines virtual you want to replicate are not moved on warehouses of data that are not replicated , but will still have the ability to move if there is a conflict.

    Gregg

    With all due respect but SRM and DTS don't go together. SRM does not at all support the use of DTS. So if you are configuring SRM forget DTS for now.

    Reason for this is that SRM knows no DTS and VMs can be in flight when a failover should occur, and bad things can happen. Also, the protection breaks when a virtual computer is moved between data warehouses in a cluster data store.

    In short: don't go there.

  • A question about external authentication with PHP OCI8 using a portfolio store

    Hello
    SQL> SELECT * FROM v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> 
    OS: Linux Fedora Core 17 (x86_64)
    PHP Version: 5.4.14
    Apache version (httpd): Apache/2.2.23 (Fedora) 
    I have a question about OCI8 connection to the Oracle server via portfolio, which I understand is a good practice because we do not have to hard code the users password. I'm trying to read pages 117 and 118 of the book The Underground PHP and Oracle manual online to learn how to set up a portfolio. I proceeded by steps as explained in these two pages (except that at the end I connect, as a normal user, not a privileged user) yet, apparently PHP does not detect the user.

    Here's what I write in my script
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    the training is the name of the user that I use in my PHP scripts to connect to the oracle database and the password is mypassword (is not true, just for the purpose of this thread :)) the code above gives me the following error:)
    Warning: oci_connect(): ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 91
    
    Fatal error: Connection step: ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 13
    But if I also provide the password which is,
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "mypassword", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    Obviously it works, but at the same time, this means that my wallet is not operational.

    So I'll write here, step by step, how I did according to the instructions contained in the pages 117 and 118 of the above mentioned book and I would be grateful if you could kindly tell where I made the mistake (s)

    The following text was performed under my oracle linux (so the dbagroup)

    Step 01:_
    I created and provided the password for the directory of portfolio
    mkstore -wrl /home/oracle/wallet_dir -create
    Step 02:_
    I created an entry for my oracle user that will be used in my PHP scripts to connect to oracle
    user: training
    password: mypassword
    mkstore -wrl "/home/oracle/wallet_dir" -createCredential php_ora_usr training mypassword
    I also checked that the entry was actually created for my user in the portfolio
    $ mkstore -wrl "/home/oracle/wallet_dir" -listCredential
    Oracle Secret Store Tool : Version 11.2.0.1.0 - Production
    Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
    
    Enter wallet password:                
       
    List credential (index: connect_string username)
    1: php_ora_usr training
    $ 
    Step 03:_
    I added the following to my $TNS_ADMIN/tnsnames.ora
    .  .  .
    php_ora_usr = 
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = db02)
        )
      )
    .  .  .
    Step 04_
    I added the following to my $TNS_ADMIN/sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    
    ADR_BASE = /u01/app/oracle
    
    WALLET_LOCATION =
        (SOURCE =
            (METHOD = FILE)
            (METHOD_DATA =
                (DIRECTORY = /home/oracle/wallet_dir)
            )
        )
    SQLNET.WALLET_OVERRIDE = TRUE
    SSL_CLIENT_AUTHENTICATION = FALSE
    SSL_VERSION = 0
    _ Step 05
    The TNS_ADMIN environment variable is already set correctly in * / etc/sysconfig/httpd * so I didn't need to do something for this step


    Step 06_
    I gave to access Apache (as root) in the directory of portfolio (in fact, it seems that the user oracle (dba) of linux also has the required privileges to grant this access to the apache)
    # setfacl -m u:apache:rx /home/oracle/wallet_dir
    # setfacl -m u:apache:r /home/oracle/wallet_dir/{cwallet.sso,ewallet.p12}
    Step 07_
    Restart Apache
    # service httpd restart
    Step 08_
    Finally make a test connection using the connection string php_ora_usr which the entry was created earlier. And the test was not successful, as indicated above
    $connection = 
                    oci_connect 
                        (
                            "training", 
                            "", 
                            "php_ora_usr", 
                            "AL32UTF8"
                        );
    The error message:
    Warning: oci_connect(): ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 91
    
    Fatal error: Connection step: ORA-01005: null password given; logon denied in /var/www/html/myscript.php on line 13
    I would appreciate it if you could kindly shed some light.

    Thanks in advance,
    Dariyoosh

    That gives a good clue to begin with. With your platform/Apache/DB, you might need different ACLs. Test directory and permissions. Check what euid your Apache runs as. Good luck.

Maybe you are looking for